626Pilot / RaspberryPi-NeoPixel-WS2812

Library for driving WS2812 pixels (also known as "NeoPixels" when sold by Adafruit) from a Raspberry Pi.
132 stars 26 forks source link

1 led : blue color displayed instead of red for odd color values #8

Open Lahorde opened 8 years ago

Lahorde commented 8 years ago

I'm getting a blue color for odd values when running this test on a single neopixel. I'm working with an rpi B+

  int j = 0;
  numLEDs = 1;
  setBrightness(1);

  while(1){
    setPixelColorT(0, Color(j++,  0,   0));
    show();
    sleep(2);
    printf("%d\n", j);
  }