It is much easier for me to learn from real examples.
The gpiozero documentation is exceptional in its use of examples.
Like this one -
2.5. Button - https://gpiozero.readthedocs.io/en/late ... tml#button
The third option there seems to demonstrate a solution to your requirement bx-0.
2.8. Shutdown button - https://gpiozero.readthedocs.io/en/late ... own-button
That seems to demonstrate a solution to your requirement bx-2.
Statistics: Posted by B.Goode — Sat Jun 22, 2024 6:12 am