Blame | Last modification | View Log | RSS feed
// ------------------------------------------------------------------
// Move a single circling LED from outer to inner and leave LEDs on
// ------------------------------------------------------------------
void spiralRev_glow( uint8_t r, uint8_t g, uint8_t b, uint8_t wait) {
uint8_t ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8;
for (uint8_t j = riggerSize; j > 0 ; j--){
for (uint8_t i = 1 ; i <= rigger ; i++){
if (i == 1){
strip.setPixelColor(j-1, r, g, b, 1, 0, 0, 0, 0, 0, 0, 0);
strip.show();
delay ( wait );
// strip.setPixelColor(j-1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0);
remoteControl();
if (Effectcounter1 != Effectcounter2) {
return;}
strip.show();
delay ( wait );
}
if (i == 2){
strip.setPixelColor(j-1, r, g, b, 0, 1, 0, 0, 0, 0, 0, 0);
strip.show();
delay ( wait );
// strip.setPixelColor(j-1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0);
remoteControl();
if (Effectcounter1 != Effectcounter2) {
return;}
strip.show();
delay ( wait );
}
if (i == 3){
strip.setPixelColor(j-1, r, g, b, 0, 0, 1, 0, 0, 0, 0, 0);
strip.show();
delay ( wait );
// strip.setPixelColor(j-1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0);
remoteControl();
if (Effectcounter1 != Effectcounter2) {
return;}
strip.show();
delay ( wait );
}
if (i == 4){
strip.setPixelColor(j-1, r, g, b, 0, 0, 0, 1, 0, 0, 0, 0);
strip.show();
delay ( wait );
// strip.setPixelColor(j-1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0);
remoteControl();
if (Effectcounter1 != Effectcounter2) {
return;}
strip.show();
delay ( wait );
}
if (i == 5){
strip.setPixelColor(j-1, r, g, b, 0, 0, 0, 0, 1, 0, 0, 0);
strip.show();
delay ( wait );
// strip.setPixelColor(j-1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0);
remoteControl();
if (Effectcounter1 != Effectcounter2) {
return;}
strip.show();
delay ( wait );
}
if (i == 6){
strip.setPixelColor(j-1, r, g, b, 0, 0, 0, 0, 0, 1, 0, 0);
strip.show();
delay ( wait );
strip.setPixelColor(j-1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0);
remoteControl();
if (Effectcounter1 != Effectcounter2) {
return;}
strip.show();
delay ( wait );
}
if (i == 7){
strip.setPixelColor(j-1, r, g, b, 0, 0, 0, 0, 0, 0, 1, 0);
strip.show();
delay ( wait );
// strip.setPixelColor(j-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0);
remoteControl();
if (Effectcounter1 != Effectcounter2) {
return;}
strip.show();
delay ( wait );
}
if (i == 8){
strip.setPixelColor(j-1, r, g, b, 0, 0, 0, 0, 0, 0, 0, 1);
strip.show();
delay ( wait );
// strip.setPixelColor(j-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
remoteControl();
if (Effectcounter1 != Effectcounter2) {
return;}
strip.show();
delay ( wait );
}
}
}
for (uint8_t j=0; j< riggerSize ; j++){
strip.setPixelColor(j, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1);
}
strip.show();
delay ( wait );
}