IoT - Modular - Pixels.h

From The TinkerNet Wiki
Revision as of 15:23, 30 April 2021 by Tinker (talk | contribs) (Created page with "<syntaxhighlight lang="cpp" line="1"> #ifndef PIXELS_H #define PIXELS_H /////////////////////////////////////////////////// // Which pin is your neoPixel strip connected to #...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1 #ifndef PIXELS_H
 2 #define PIXELS_H
 3 
 4 ///////////////////////////////////////////////////
 5 // Which pin is your neoPixel strip connected to
 6 #define PixelPin 12    // GPIO13 / Tarduino D7
 7 int PixelCount = 4;
 8 #define OBL 2
 9 
10 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(PixelCount, PixelPin, NEO_GRB + NEO_KHZ800);
11 
12 
13 // Setup some constants for use in SetAPixel()
14 
15 //int Bright1 = 6;    // 0-255    //  No-Name strip
16 //int Bright2 = 1;    // 0-255    //  AdaFruit strip
17 
18 int PixelBright = 5;    // 0-255    //  No-Name strip
19 
20 // The colours:
21 int RED[] = {255, 000, 000};
22 int GRN[] = {000, 255, 000};
23 int BLU[] = {000, 000, 255};
24 int BLK[] = {000, 000, 000};
25 int YEL[] = {255, 255, 000};
26 
27 #endif // PIXELS_H