LED Lights are not turning off #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The LED lights for the buttons are stuck on, and do not turn off.
asbto mastermasterto asbI believe this is from this section of code:
Somewhat unhelpfully,
ledOndoesn't actually refer to the state so much as the intended state.ledOncould befalse, with the LEDs still actually on, but as the loop continues they should be getter dimmer.So possible solutions here could be to either remove the switch case entirely, or move the part of the function that deals with dimming into another case.
Also need to be careful with the delay() function. While it is unlikely to be the cause of the lights never turning off, it does effectivly pause the execution of the code at that point until the delay expires. Other buttons will not work, and it may take even longer than normal for the LEDs to turn off if they were working.
Nice pic (of me).
I think it is all now resolved... see email (or attached) - version 2.3.
Fixed in in v2.3 in ASB branch.