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

Python • Re: Button to restart Pi, button to restart program

$
0
0
Thank you for all of the suggestions. I was unable to get any of them to work, but I did find out that I can just create a countdown timer that allows the buttons to be detected because there is only a 1 second sleep function.
Any of them?

You do realise that if you sleep for 1 second you will miss a lot of button presses that last less than a second?

Statistics: Posted by ame — Fri Aug 30, 2024 12:49 am



Viewing all articles
Browse latest Browse all 1269

Trending Articles