Files
WaterTank/Maker_Pico_Box/button.py
2026-06-16 13:02:06 +02:00

11 lines
175 B
Python

import machine
import time
while True:
if machine.bootsel_button():
print("BOOTSEL button pressed!")
else:
print("Not pressed.")
time.sleep(0.2)