
For some reason everything I tried at the top of the loop is making blue light or no light no matter what inputs I use. Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits. The alpha value is implicitly 255 (fully opaque). The dimming for-loop I built works fine, but it makes blue light instead of white. FromArgb (Int32, Int32, Int32) Creates a Color structure from the specified 8-bit color values (red, green, and blue). That worked fine, but I tried to add some dimming so it wouldn't be choppy at slow speeds.
#COLOR 255 255 255 CODE#
I'm building off the neopixel strandtest code to create a program that moves an interval of lit LEDs back and forth across my neopixel strip. put your main code here, to run repeatedly: The function takes 3 parameters, one for red, one for green and one for red, that can range from 0 to 255. Strip.show() // Initialize all pixels to 'off' You can also specify a color by using the function RGB () that returns a TColor value. This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket #include Īdafruit_NeoPixel strip = Adafruit_NeoPixel(60, PIN, NEO_GRB + NEO_KHZ800)
#COLOR 255 255 255 FULL#
I can get other colors just fine by using the neopixel strandtest example code (it does the full rainbow and everything), but the attempts to use simple commands to just set pixels to a certain color are either returning blue or nothing.

I want to produce white light and (255, 255, 255) is only producing blue light. Any combination of the colors produces blue light.

I have the following code, and the two commented out portions at the bottom produce no light (for (255, 0,0) and (0,255,0) ), while (0,0,255) produces blue light. I am using a neopixel led strip right now. Maybe this is a better way of showing my issue. Leaving this for posterity in case someone else has the same misunderstanding.
