|
|
|
|
|
|
|
|
* @param wait intger avec le delay |
|
|
* @param wait intger avec le delay |
|
|
*/ |
|
|
*/ |
|
|
void LED_changeCouleur(Couleur color, int wait){ |
|
|
void LED_changeCouleur(Couleur color, int wait){ |
|
|
for( int i =0; i<= LED_COUNT; i++){ |
|
|
|
|
|
|
|
|
for( int i =0; i<= LED_COUNT/2; i++){ |
|
|
LED_AllumeBaton(i, color); |
|
|
LED_AllumeBaton(i, color); |
|
|
strip.show(); // Update strip to match |
|
|
strip.show(); // Update strip to match |
|
|
delay(wait); // Pause for a moment |
|
|
delay(wait); // Pause for a moment |
|
|
|
|
|
|
|
|
* @param wait intger avec le delay |
|
|
* @param wait intger avec le delay |
|
|
*/ |
|
|
*/ |
|
|
void LED_changeCouleurInverse(Couleur color, int wait){ |
|
|
void LED_changeCouleurInverse(Couleur color, int wait){ |
|
|
for( int i = LED_COUNT; i >= 0; i--){ |
|
|
|
|
|
|
|
|
for( int i = LED_COUNT/2; i >= 0; i--){ |
|
|
LED_AllumeBaton(i, color); |
|
|
LED_AllumeBaton(i, color); |
|
|
strip.show(); // Update strip to match |
|
|
strip.show(); // Update strip to match |
|
|
delay(wait); // Pause for a moment |
|
|
delay(wait); // Pause for a moment |