Hi Luz,
This is the code I think should work.
//************************************************
struct colorpalette {
byte red;
byte green;
byte blue;
};
const byte colorindexRED = 0x00;
const byte colorindexGREEN = 0x10;
const byte colorindexBLUE = 0x20;
/*
const byte colorindexYELLOW = 0x30;
const byte colorindexMAGENTA = 0x40;
const byte colorindexCYAN = 0x50;
*/
const int LEDstripLEDs = 720;
byte LEDstrip[LEDstripLEDs];
static colorpalette ColorTable[] = {
{0, 0, 0}, //red - off
{15, 0, 0},
{31, 0, 0},
{47, 0, 0},
{63, 0, 0},
{79, 0, 0},
{95, 0, 0},
{111, 0, 0},
{127, 0, 0},
{143, 0, 0},
{159, 0, 0},
{175, 0, 0},
{191, 0, 0},
{207, 0, 0},
{223, 0, 0},
{239, 0, 0},
{255, 0, 0}, // red - brightest
{0, 0, 0}, //green - off
{0, 15, 0},
{0, 31, 0},
{0, 47, 0},
{0, 63, 0},
{0, 79, 0},
{0, 95, 0},
{0, 111, 0},
{0, 127, 0},
{0, 143, 0},
{0, 159, 0},
{0, 175, 0},
{0, 191, 0},
{0, 207, 0},
{0, 223, 0},
{0, 239, 0},
{0, 255, 0}, // green - brightest
{0, 0, 0}, //blue - off
{0, 0, 15},
{0, 0, 31},
{0, 0, 47},
{0, 0, 63},
{0, 0, 79},
{0, 0, 95},
{0, 0, 111},
{0, 0, 127},
{0, 0, 143},
{0, 0, 159},
{0, 0, 175},
{0, 0, 191},
{0, 0, 207},
{0, 0, 223},
{0, 0, 239},
{0, 0, 255} // blue - brightest
};
//************************************************
void setup() {
// do something
}
void loop() {
LEDstrip[0] = colorindexRED | 15; // color and brightness
/* send data to LED strip */
// writeRED (ColorTable.red[LEDstrip[0]]);
// writeGREEN (ColorTable.green[LEDstrip[0]]);
// writeBLUE (ColorTable.blue[LEDstrip[0]]);
}