I have a Radio Shack RGB Tri-Color LED strip. I am trying to set it to scroll through colors as I turn a potentiometer knob.
This is currently how it is programmed... There's got to be a better way. I would like to have every combination corresponding to a color, which, I assume, need to be mapped to the potentiometer?
PROGMEM const unsigned long color_1[1][10]={
{0xf00000,0xf00000,0xf00000,0xf00000,0xf00000,0xf00000,0xf00000,0xf00000,0xf00000,0xf00000}
};
PROGMEM const unsigned long color_2[1][10]={
{0x0f0000,0x0f0000,0x0f0000,0x0f0000,0x0f0000,0x0f0000,0x0f0000,0x0f0000,0x0f0000,0x0f0000}
};
PROGMEM const unsigned long color_3[1][10]={
{0x00f000,0x00f000,0x00f000,0x00f000,0x00f000,0x00f000,0x00f000,0x00f000,0x00f000,0x00f000}
};
PROGMEM const unsigned long color_4[1][10]={
{0x000f00,0x000f00,0x000f00,0x000f00,0x000f00,0x000f00,0x000f00,0x000f00,0x000f00,0x000f00}
};
.
.
.
.
etc...