kopia lustrzana https://github.com/blaz-r/pi_pico_neopixel
Added HSV example
rodzic
11eac97d4f
commit
05be57279b
|
@ -0,0 +1,14 @@
|
|||
# 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
|
Ładowanie…
Reference in New Issue