diff --git a/src/main.cpp b/src/main.cpp index a564fef..e80d64c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,7 +13,7 @@ // lumiere/allume/lampeADN value : Allummage des leds du bas vers le haut (en %) 0= aucune, 100 =) toutes // --------------------------------------------------------------------------------------- #include -//#define ModeDebug +#define ModeDebug const String firmwareActualVersion = "1.0.0"; diff --git a/src/my_leds.h b/src/my_leds.h index 09ba096..e025c3d 100644 --- a/src/my_leds.h +++ b/src/my_leds.h @@ -66,7 +66,7 @@ void LED_colorWipe(uint32_t color, int wait) { * @param wait intger avec le delay */ 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); strip.show(); // Update strip to match delay(wait); // Pause for a moment @@ -81,7 +81,7 @@ void LED_changeCouleur(Couleur color, int wait){ * @param wait intger avec le delay */ 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); strip.show(); // Update strip to match delay(wait); // Pause for a moment