Open Piero87 opened 6 years ago
The example does not seem correct that way.
It is an RGB strip. So you have three channel intensity values, one for red, one for green and one for blue. Every value is in range between 0 and 255. 0 being off and 255 shining the brightest.
So for Color red you set:
colorWipe(strip, Color(255, 0, 0))
for Color green:
colorWipe(strip, Color(0, 255, 0))
and for Color blue:
colorWipe(strip, Color(0, 0, 255))
To get a solid Color and not a ColorWipeyou can add a function like this to your script:
def colorSolid(strip, color):
for i in range (strip.numPixels()):
strip.setPixelColor(i, color)
strip.show()
You don't even need the while True
anymore then.
To get a warm white i would suggest a mixture like this:
Color(255, 103, 23)
@peos3 Hi, thanks for your answer, take a look here:
Hi, i'm trying to color the led stripe of white color and i found this code:
this:
colorWipe(strip, Color(0, 0, 0, 255), 0) # White wipe
It's no color the led strip it's seems off
this:
colorWipe(strip, Color(255, 255, 255), 0) # Composite White wipe
It's orange
this:
colorWipe(strip, Color(0, 0, 255), 0) # Green wipe
it's blue
this:
colorWipe(strip, Color(255, 255, 255, 255), 0) # Composite White + White LED wipe
it's no color
can someone tell me how colors works? how can I achieve green or white? or warm white?
Thanks