Subversion Repositories Projects

Rev

Rev 1758 | Blame | Compare with Previous | Last modification | View Log | RSS feed

Light Sequence Template:

Created by / Erstellt von:  "Magomora"

Explanation / Erklärung:
----------------------------------------------
LED läuft rückwärts den Streifen entlang
----------------------------------------------

Command / Befehl:
----------------------------------------------
colorChaseRev(r,g,b,dly,ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8)
----------------------------------------------


Code:
----------------------------------------------
void colorChaseRev( uint8_t r, uint8_t g, uint8_t b, uint8_t wait, uint8_t ri1, uint8_t ri2, uint8_t ri3, uint8_t ri4, uint8_t ri5, uint8_t ri6, uint8_t ri7, uint8_t ri8) {
 int i;

 clearstrip ();

 for (i=riggerSize-1; i >= 0; i--) {
 strip.setPixelColor(i,  r, g, b ,ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8); // set one pixel
 strip.show(); // refresh strip display
 delay(wait); // hold image for a moment
 strip.setPixelColor(i,0,0, 0,ri1, ri2, ri3, ri4, ri5, ri6, ri7, ri8); // erase pixel (but don't refresh yet)
 }
 strip.show(); // for last erased pixel
}
----------------------------------------------