You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
3c0da6a359
Requires BUTTON defined in hwconfig, so far tested on DragonBoard 410c.
10 lines
180 B
Python
10 lines
180 B
Python
import utime
|
|
from hwconfig import LED, BUTTON
|
|
|
|
# Light LED when (and while) a BUTTON is pressed
|
|
|
|
while 1:
|
|
LED.value(BUTTON.value())
|
|
# Don't burn CPU
|
|
utime.sleep_ms(10)
|