Modular ESP Firmware - NeoPixels - Declarations and Defines
Jump to navigation
Jump to search
In Pixels.h
1 ////////////////////////////////////////////////////////
2 // These are currently all from my Status LEDs project
3 ////////////////////////////////////////////////////////
4
5 // Which pin is your neoPixel strip connected to
6 #define PixelPin 14 // GPIO14 / Tarduino D5
7
8 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(8, PixelPin, NEO_GRB + NEO_KHZ800);
9
10 void SetAPixel(int, int*);
11
12 // If you want to run more than one string (on different pins...), you can
13 // create multiples of 'PixelPin', 'pixels' & 'Brightness'
14 //
15 // At this point, you'll have the choice of modifying 'SetaPixel()' or just
16 // duplicating it for each strip
17
18 // Setup some constants for use in SetAPixel()
19
20 int Brightness = 2; // 0-255 // No-Name strips are quite bright enough at 2
21 // Adafruit strips seem blinding no matter what :|
22
23 // The colours:
24 int RED[] = {255, 000, 000};
25 int GRN[] = {000, 255, 000};
26 int BLU[] = {000, 000, 255};
27 int BLK[] = {000, 000, 000};
28 int YEL[] = {255, 255, 000};
29
30 /*
31 * These are basic R, G, B etc...
32 */