Quantcast
Viewing all articles
Browse latest Browse all 5386

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

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
I'm surprised that this was the only thing I forgot. There must be something more... Image may be NSFW.
Clik here to view.
;-)


Glad that you've got it working.

Statistics: Posted by kheylen25 — Wed Dec 11, 2024 7:02 pm



Viewing all articles
Browse latest Browse all 5386

Trending Articles