Rev 1757 | Blame | Compare with Previous | Last modification | View Log | RSS feed
Light Sequence Template:
Created by / Erstellt von: "Magomora"
Explanation / Erklärung:
----------------------------------------------
----------------------------------------------
Command / Befehl:
----------------------------------------------
flashingCircle( r, g, b, dly);
----------------------------------------------
Code:
----------------------------------------------
void flashingCircle( 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=0; j< riggerSize ; j++){
strip.setPixelColor(j, r, g, b, 1, 1, 1, 1, 1, 1, 1, 1);
strip.show();
delay ( wait );
strip.setPixelColor(j, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1);
strip.show();
delay ( wait/2 );
}
}
----------------------------------------------