Timeline for How to toggle LED and motor on button press?
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 27, 2020 at 18:00 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 29, 2020 at 17:04 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 31, 2019 at 17:02 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 1, 2019 at 16:36 | answer | added | Paul Colin | timeline score: 0 | |
Nov 29, 2019 at 18:58 | comment | added | jsotola | start by writing button code that controls a single led ... button sets a variable .... LED responds to variable | |
Nov 29, 2019 at 18:57 | comment | added | jsotola |
you are getting distracted by the fading lights and by the motor .... the motor action and the fading lights action are completely separate from the button press action .... the motor and light could be triggered by a timer, by voltage level or by a number of other events ....... the lights should be controlled by a boolean variable ... name it lights_on for example ... the button should set the value of lights_on variable .... the value should be set only by the switch at the transition from button not-pressed state to button pressed state , not by the "pressed` state alone
|
|
Nov 29, 2019 at 17:13 | history | edited | Maximilian Gerhardt |
edited tags
|
|
S Nov 29, 2019 at 17:13 | history | suggested | Peter Paul Kiefer | CC BY-SA 4.0 |
code formatting
|
Nov 29, 2019 at 16:22 | answer | added | Peter Paul Kiefer | timeline score: 1 | |
Nov 29, 2019 at 15:40 | review | Suggested edits | |||
S Nov 29, 2019 at 17:13 | |||||
Nov 29, 2019 at 15:04 | review | First posts | |||
Nov 29, 2019 at 15:17 | |||||
Nov 29, 2019 at 15:03 | history | asked | Iulia Popescu | CC BY-SA 4.0 |