Skip to main content
Arduino

Timeline for Switch setting 'running' state boolean doesn't hold

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Aug 16, 2017 at 15:05 vote accept mysterious-bob
Jul 24, 2017 at 3:07 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.
Jun 22, 2017 at 1:46 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.
May 26, 2017 at 0:59 vote accept mysterious-bob
May 26, 2017 at 0:59
May 22, 2017 at 23:59 answer added mysterious-bob timeline score: 0
May 22, 2017 at 23:55 comment added mysterious-bob @Manjenko, that makes sense! Thanks :) I have added a switch previous state variable to check and allow the if to only run when I want it. I'll post it up as an answer.
May 22, 2017 at 23:12 comment added Majenko You are constantly toggling it over and over again all the time you are holding the button down. Every iteration of loop() you change the variable to the opposite if you happen to still be holding the button down.
May 22, 2017 at 23:00 review First posts
May 23, 2017 at 1:00
May 22, 2017 at 22:56 history edited mysterious-bob CC BY-SA 3.0
added 6 characters in body
May 22, 2017 at 22:49 history asked mysterious-bob CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /