Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Beginners • Re: LED turned on by one script, need "reset" button to turn it off

$
0
0
It appears that this will replace the script that turns it on with one that will turn it on AND allow the button press to turn it off. It works!

I even changed the 900 to 5 to make sure the light went out at 5 seconds so I would not have had to wait for 15 minutes to verify that. This is awesome!

Edit: had to add "Button" to the gpiozero imports

Statistics: Posted by duckredbeard — Wed Dec 11, 2024 6:26 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles