kopia lustrzana https://github.com/blaz-r/pi_pico_neopixel
14 wiersze
251 B
Python
14 wiersze
251 B
Python
|
# Example showing use of HSV colors
|
||
|
import time
|
||
|
from neopixel import Neopixel
|
||
|
|
||
|
numpix = 60
|
||
|
strip = Neopixel(numpix, 0, 0, "GRB")
|
||
|
|
||
|
hue = 0
|
||
|
while(True):
|
||
|
color = strip.colorHSV(hue, 255, 150)
|
||
|
strip.fill(color)
|
||
|
strip.show()
|
||
|
|
||
|
hue += 150
|