Autoformat Arduino code wit Arduino IDE

This commit is contained in:
Lomanic 2019-11-22 21:19:39 +01:00
parent c39d0fb24f
commit e99219cc16

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() {
} }
} }
} }