mirror of
https://github.com/m5stack/M5GO.git
synced 2026-05-20 10:15:29 -07:00
9 lines
229 B
Python
9 lines
229 B
Python
import machine, time
|
|
led_bar = machine.Neopixel(15, 10)
|
|
while True:
|
|
for i in range(1, 11):
|
|
if i > 0:
|
|
led_bar.set(i, led_bar.BLACK) # OFF
|
|
if i+1 <= 10:
|
|
led_bar.set(i+1, led_bar.WHITE) # ON
|
|
time.sleep(0.1) |