Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Neopixel Jewel showing as white !!!
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Neopixel Jewel showing as white !!!

by kilein on Sun Jan 12, 2020 2:52 am

When I was debugging and creating this code with a friend everything was working great, but now that I"ve soldered everything up, the jewel just shows as bright white. I know some are the newer RGBW or GRBW and I've tried every combination... This is the jewel and I'll post the code below:
https://www.adafruit.com/product/2226
Code: Select all | TOGGLE FULL SIZE
#include <Adafruit_NeoPixel.h>

// Change this line to the correct pin.
#define PIN 1

// Change this line to change the brightness.
int brightness = 40;

int totalPixels = 7;
int red = 255;
int blue = 0;

// Change this line to change the wait.
int wait = 50;

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(totalPixels, PIN, NEO_GRBW + NEO_KHZ800);

void setup() {
  pixels.begin();
  pixels.show();
}

void RedToYellow()
{
  for (int green = 0; green < 256; green++)
  {
    for (int i = 0; i < totalPixels; i++)
    {
      pixels.setPixelColor(i, red, green, blue, brightness);
    }
   
    pixels.show();
    delay(wait);
  }
}

void YellowToRed()
{
  for (int green = 255; green >  -1; green--)
  {
    for (int i = 0; i < totalPixels; i++)
    {
      pixels.setPixelColor(i, red, green, blue, brightness);
    }
   
    pixels.show();
    delay(wait);
  }
}

void loop() {
  RedToYellow();
  YellowToRed();
  delay(wait);
}

kilein
 
Posts: 2
Joined: Sun Jan 12, 2020 2:51 am

Re: Neopixel Jewel showing as white !!!

by adafruit_support_bill on Sun Jan 12, 2020 8:26 am

Please post a close-up photo of the front of your Jewel.

adafruit_support_bill
 
Posts: 78214
Joined: Sat Feb 07, 2009 10:11 am

Re: Neopixel Jewel showing as white !!!

by kilein on Mon Jan 13, 2020 8:50 am

Thank you so much for the information.

kilein
 
Posts: 2
Joined: Sun Jan 12, 2020 2:51 am

Re: Neopixel Jewel showing as white !!!

by adafruit_support_bill on Mon Jan 13, 2020 10:09 am

Please post the photos so we can determine whether you have RGB or RGBW pixels.

adafruit_support_bill
 
Posts: 78214
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.