loading

Error message when compiling?

When compiling the code in the

Addressable LEDs and Code Libraries

section, I get the following error message when the compiler gets to:

Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRBW + NEO_KHZ800);

-----------------------------------------------------------

exit status 1
'NEO_GRBW' was not declared in this scope

------------------------------------------------------------

#include <Adafruit_NeoPixel.h>

#define PIN 6

#define NUM_LEDS 10

#define BRIGHTNESS 50

// Parameter 1 = number of pixels in strip
// Parameter 2 = pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_RGB Pixels are wired for RGB bitstream
// NEO_GRB Pixels are wired for GRB bitstream, correct if colors are swapped upon testing
// NEO_RGBW Pixels are wired for RGBW bitstream
// NEO_KHZ400 400 KHz bitstream (e.g. FLORA pixels)
// NEO_KHZ800 800 KHz bitstream (e.g. High Density LED strip), correct for neopixel stick
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRBW + NEO_KHZ800);


bekathwia3 months ago

Have you installed the NeoPixel library, and is it up to date?