Files
mixly3/boards/default/micropython_nrf51822_mithoncc/build/lib/rgb_show.py
2024-07-19 10:16:00 +08:00

13 lines
246 B
Python

from microbit import *
import neopixel
np = neopixel.NeoPixel(pin12, 4)
def mixly_rgb_show_all(r, g, b):
for led in range(4):
np[led] = (r, g, b)
np.show()
def mixly_rgb_show(led, r, g, b):
np[led] = (r, g, b)
np.show()