X-Git-Url: http://git.piffa.net/web?a=blobdiff_plain;f=advanced_projects%2Fstate_machine%2Fsemaforo_2_1_stimolo%2Fsemaforo_2_1_stimolo.ino;h=99ea8a56c4662e27beed0e6ff0272a3fd5a17ac3;hb=b46e75aacd9a0d7e318d5ef06730bf1e701ae9f5;hp=b15183824b4962b4f226ea22f9ff451f360d06a4;hpb=8a90a5875d2fcf8db21835920d57f97a4bca0ade;p=sketchbook_andrea diff --git a/advanced_projects/state_machine/semaforo_2_1_stimolo/semaforo_2_1_stimolo.ino b/advanced_projects/state_machine/semaforo_2_1_stimolo/semaforo_2_1_stimolo.ino index b151838..99ea8a5 100644 --- a/advanced_projects/state_machine/semaforo_2_1_stimolo/semaforo_2_1_stimolo.ino +++ b/advanced_projects/state_machine/semaforo_2_1_stimolo/semaforo_2_1_stimolo.ino @@ -13,7 +13,7 @@ #include const byte input = 2; // PIN del bottone -int pausa = 3000; +const int pausa = 3000; enum states_available { // Stati della FMS turn_green, // Dinamico, transizione green, // Statico @@ -51,7 +51,6 @@ switch (state) { state = turn_red ; // Il passaggio di stato avviene alla pressione di un bottone delay(20); }; - break; case turn_red :