Upgrade led switch example