filmov
tv
micropython on atom lite esp32 board demo

Показать описание
micropython on atom lite esp32 board demo
code:
# atom lite esp32 board, micropython button, rgb led demo
import machine, neopixel
button = machine.Pin(39, machine.Pin.IN, machine.Pin.PULL_UP)
np = neopixel.NeoPixel(machine.Pin(27), 1)
np[0] = (0,0,0)
while True:
np[0] = (0,0,0)
else:
np[0] = (0,255,0)
code:
# atom lite esp32 board, micropython button, rgb led demo
import machine, neopixel
button = machine.Pin(39, machine.Pin.IN, machine.Pin.PULL_UP)
np = neopixel.NeoPixel(machine.Pin(27), 1)
np[0] = (0,0,0)
while True:
np[0] = (0,0,0)
else:
np[0] = (0,255,0)