|  |  | @@ -15,7 +15,7 @@ | 
		
	
		
			
			|  |  |  | #include <Arduino.h> | 
		
	
		
			
			|  |  |  | //#define ModeDebug | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | const String firmwareActualVersion = "1.0.0"; | 
		
	
		
			
			|  |  |  | const String firmwareActualVersion = "1.1.0"; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | #ifdef ModeDebug | 
		
	
		
			
			|  |  |  | #define DEBUG(message) \ | 
		
	
	
		
			
			|  |  | @@ -49,7 +49,6 @@ int LED_COUNT = 66; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | // LEDS | 
		
	
		
			
			|  |  |  | boolean g_BOO_AnimationSeconde = true; | 
		
	
		
			
			|  |  |  | #include "my_leds.h" | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
	
		
			
			|  |  | @@ -104,8 +103,6 @@ void setup() { | 
		
	
		
			
			|  |  |  | strip.show();            // Turn OFF all pixels ASAP | 
		
	
		
			
			|  |  |  | strip.setBrightness(255); | 
		
	
		
			
			|  |  |  | LED_Animation(5); | 
		
	
		
			
			|  |  |  | g_BOO_AnimationSeconde = true; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | DEBUG("************************** Tout est initialise"); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
	
		
			
			|  |  | @@ -120,10 +117,6 @@ void setup() { | 
		
	
		
			
			|  |  |  | unsigned long lastRecu = 0; | 
		
	
		
			
			|  |  |  | int numled = 0; | 
		
	
		
			
			|  |  |  | void loop() { | 
		
	
		
			
			|  |  |  | // On écoute le serveur OTA | 
		
	
		
			
			|  |  |  | // OTA_doUpdate(); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | // Test si la connection Wifi existe toujours ................................... | 
		
	
		
			
			|  |  |  | if (WiFi.status() != WL_CONNECTED) { | 
		
	
		
			
			|  |  |  | // Si on est déconnecté on tente de se reconnecter automatiquement avec les anciens settings. | 
		
	
	
		
			
			|  |  | @@ -145,28 +138,6 @@ void loop() { | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | // Animation des LEDS toutes les secondes ......................................... | 
		
	
		
			
			|  |  |  | if (millis() - lastRecu > 1000 ) { | 
		
	
		
			
			|  |  |  | lastRecu = millis(); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | // Allumage d'une led | 
		
	
		
			
			|  |  |  | if ( g_BOO_AnimationSeconde ) { | 
		
	
		
			
			|  |  |  | if ( numled >= LED_COUNT /2 ) { | 
		
	
		
			
			|  |  |  | LED_AllumeBaton( numled -1, 0,0,0 ); // Noir | 
		
	
		
			
			|  |  |  | LED_AllumeBaton( numled -2, 0,0,0 ); // Noir | 
		
	
		
			
			|  |  |  | numled = 0; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | LED_AllumeBaton( numled, 255,0,100 ); // Rouge | 
		
	
		
			
			|  |  |  | LED_AllumeBaton( numled -1, 50,0,70 ); // Noir | 
		
	
		
			
			|  |  |  | LED_AllumeBaton( numled -2, 0,0,0 ); // Noir | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | numled++; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | // Traitement des Messages MQTT ................................................... | 
		
	
		
			
			|  |  |  | // Tout est fait dans  MQTT_callback() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } |