Timeline for How or why is the Arduino keeping a LED on when the input putton is no longer pressed?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 23, 2021 at 13:24 | answer | added | ArduinoFan | timeline score: 2 | |
Aug 22, 2021 at 14:50 | answer | added | chrisl | timeline score: 1 | |
Aug 22, 2021 at 13:35 | comment | added | timemage |
The port manipulated by digitalWrite maintains a state, kind of like a variable.
|
|
Aug 22, 2021 at 12:34 | comment | added | Coder9390 | Look at the code carefully - If button A is low turn the led on and only if button B is low then will it turn off, so if you press button B it will turn off | |
Aug 22, 2021 at 4:03 | answer | added | Sim Son | timeline score: 1 | |
Aug 22, 2021 at 1:40 | answer | added | Gil | timeline score: 1 | |
Aug 22, 2021 at 0:04 | comment | added | jsotola |
you are falling into the trap of thinking this ... if the button is pressed and the light turns on, then the light must turn off if the button is released ... which part of the code tells the light to turn off when buttonApin is released?
|
|
Aug 21, 2021 at 22:42 | review | First posts | |||
Aug 22, 2021 at 13:36 | |||||
Aug 21, 2021 at 22:36 | history | asked | Peter | CC BY-SA 4.0 |