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

Python • Re: Reading button state at program start

$
0
0


My question is whether it is possible to detect the pressed (held) state at program start
Without the connotations of 'held' you can check the current status of the Button at any instant with button.is_pressed, which returns True or False.

Ref: https://gpiozero.readthedocs.io/en/late ... tml#button

Statistics: Posted by B.Goode — Wed Nov 20, 2024 3:19 pm



Viewing all articles
Browse latest Browse all 1269

Trending Articles