I can see that by default you end up addressing the strip in this manner
Adafruit_WS2801 strip = Adafruit_WS2801(LEDS,StripDataPin,StripClockPin);
so my first strip is assigned the name AdaFruit_WS2801, and it gets the values passed in for LEDS, StripDataPin, and StripClockPin
I was thinking with two stips I would have the following variables
- Code: Select all
#define SLEDS 7
#define HLEDS 20
int power = SLEDS;
int health = HLEDS
int sStripDataPin = 10; // Yellow wire on Adafruit Pixels strip 1
int sStripClockPin = 9; // Green wire on Adafruit Pixels strip 1
int hStripDataPin = 6; // Yellow wire on Adafruit Pixels Strip 2
int hStripClockPin = 3; // Green wire on Adafruit Pixels Strip 2
// Set the first variable to the NUMBER of pixels. 25 = 25 pixels in a row
Adafruit_WS2801 strip = Adafruit_WS2801(SLEDS,sStripDataPin,sStripClockPin);
Adafruit_WS2801 strip = Adafruit_WS2801(HLEDS,hStripDataPin,hStripClockPin);
is it possible to overload Adafruit_WS2801 in that way?
Also for the full project I was also going to use an RF Module like the one below so I was thinking I could use the Flora and assign the following buttons via the pins
D0 (RX) // - Button "A"
D1 (DC) //- Button "C"
D2 (SCA) //- Button "D"
If it is not possible on the Floria I am not opposed to doing the project on an UNO.