]> git.piffa.net Git - sketchbook_andrea/blobdiff - basic/buttons/button_state_4_state/button_state_4_state.ino
State and loops, array
[sketchbook_andrea] / basic / buttons / button_state_4_state / button_state_4_state.ino
index d21f27ea37ba1fe57409070c47ba8ac4d9154829..30a330bf05eb198e6aae98a105809884771959c2 100644 (file)
@@ -20,7 +20,8 @@ void setup() {
 }
 
 void loop(){
-  statoAttuale = digitalRead(buttonPin);      // Legge lo stato del bottone e lo registra in val
+  statoAttuale = digitalRead(buttonPin);      // Legge lo stato del bottone e
+                                              //  lo registra nella variabile
   delay(20);                                  // riduce l'effetto bounce
   if (statoAttuale != ultimoStato) {          // lo stato del bottone e' cambiato
     if (statoAttuale == HIGH) {               // il bottone e' stato premuto