LED control code in "p08_DigitalHourglass" affects non-LED pins after completion of timer #83
Labels
conclusion: off topic
Off topic for this repository
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
arduino-examples/examples/10.StarterKit_BasicKit/p08_DigitalHourglass/p08_DigitalHourglass.ino
Lines 47 to 60 in 2c2bb7b
Note that the code in the Digital Hourglass example starts cycling above pin 7 after the hour is up, setting pins to low and essentially setting the pinMode(switchPin,INPUT_PULLUP), overriding the external pulldown, and making the button non-functional.
The code should either reset the hourglass automatically, or check that it is in the 2-7 range before setting the pin to low.
Maybe change the test to:
Sped-up (6 seconds/step) Example:
https://wokwi.com/projects/422992836439284737
The text was updated successfully, but these errors were encountered: