commit 1
This commit is contained in:
10
Maker_Pico_Box/button.py
Normal file
10
Maker_Pico_Box/button.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import machine
|
||||
import time
|
||||
|
||||
while True:
|
||||
if machine.bootsel_button():
|
||||
print("BOOTSEL button pressed!")
|
||||
else:
|
||||
print("Not pressed.")
|
||||
time.sleep(0.2)
|
||||
|
||||
Reference in New Issue
Block a user