Implement ArduinoOTA, format arduino.cpp #1

Merged
jeanjack merged 3 commits from Lomanic/PiedThon:arduinoota into master 2019-11-23 11:26:53 +00:00
Showing only changes of commit e99219cc16 - Show all commits

View File

@ -1,9 +1,9 @@
/*** /***
* Fuz Piedthon Fuz Piedthon
* Pedestrian traffic lights, green and red, controlled over MQTT Pedestrian traffic lights, green and red, controlled over MQTT
* Board: ESP8266 Board: ESP8266
*
*/ */
#include <Arduino.h> #include <Arduino.h>
@ -114,7 +114,7 @@ void messageToPiedthon(char *msg) {
digitalWrite(GPIO_ROUGE, LOW); digitalWrite(GPIO_ROUGE, LOW);
digitalWrite(GPIO_VERT, LOW); digitalWrite(GPIO_VERT, LOW);
break; break;
case '1' : // ROUGE case '1' : // ROUGE
digitalWrite(GPIO_VERT, HIGH); digitalWrite(GPIO_VERT, HIGH);
digitalWrite(GPIO_ROUGE, LOW); digitalWrite(GPIO_ROUGE, LOW);
break; break;
@ -122,7 +122,7 @@ void messageToPiedthon(char *msg) {
digitalWrite(GPIO_VERT, LOW); digitalWrite(GPIO_VERT, LOW);
digitalWrite(GPIO_ROUGE, HIGH); digitalWrite(GPIO_ROUGE, HIGH);
break; break;
case '3' : // Rien case '3' : // Rien
digitalWrite(GPIO_ROUGE, HIGH); digitalWrite(GPIO_ROUGE, HIGH);
digitalWrite(GPIO_VERT, HIGH); digitalWrite(GPIO_VERT, HIGH);
break; break;
@ -163,4 +163,3 @@ void loop() {
} }
} }
} }