3色LEDの操作

2022/07/11

MicroPython v1.17(ESP32)

import machine
import neopixel

pin = machine.Pin(27, machine.Pin.OUT)
np = neopixel.NeoPixel(pin, 1)

np[0] = (0, 0, 255) #RGB
np.write()

動作確認:ATOM Lite