]> git.piffa.net Git - sketchbook_andrea/blobdiff - advanced_projects/state_machine/semaforo_3_millis/semaforo_3_millis.ino
Re order
[sketchbook_andrea] / advanced_projects / state_machine / semaforo_3_millis / semaforo_3_millis.ino
index 4cc7dcbb650d4972f7d571413c937239f5821eca..0b3c41563d7a8650d2c3de11f57f4e9506ef47b2 100644 (file)
@@ -18,6 +18,7 @@
 const byte input = 2; // PIN del bottone
 int pausa = 3000;
 long timer ;
+
 enum states_available { // Stati della FMS
     green,         // Statico
     wait_button,   // Evento - Stimolo
@@ -52,7 +53,7 @@ case green:
 
 case wait_button:
     if (digitalRead(input) == LOW) {
-        state = turn_yellow ; // Il passaggio di stato avviene alla pressione di un bottone
+        state = turn_yellow ; 
         delay(20); // Debouncing, si potrebbe fare con millis()
         timer = millis();
     };