In Micropython documentation you can find how to read the state of a GPIO
https://docs.micropython.org/en/latest/ ... s-and-gpio
You can then use the returned value in a while loop to wait for the push of the button
https://docs.micropython.org/en/latest/ ... s-and-gpio
You can then use the returned value in a while loop to wait for the push of the button
Statistics: Posted by fdufnews — Sun Mar 30, 2025 7:26 am