]> git.piffa.net Git - sketchbook_andrea/blobdiff - multitasking/BlinkWithoutDelay_3_funzione/BlinkWithoutDelay_3_funzione.ino
Clean up multitasking, bottoni con pooling e interrupts
[sketchbook_andrea] / multitasking / BlinkWithoutDelay_3_funzione / BlinkWithoutDelay_3_funzione.ino
index db0ed89e2c2ba043b3e395a795bc836cc52e742a..098b5013035280f6e7195d867107bb1e5cb4a1d0 100644 (file)
@@ -15,19 +15,15 @@ Variabili: http://www.maffucci.it/2011/12/15/appunti-di-programmazione-su-arduin
 /////////////
 // First LED
 const int ledA =  13;       // the number of the LED pin
-// Variables will change:
 int ledStateA = LOW;        // ledState used to set the LED
 long previousMillisA = 0;   // will store last time LED was updated
-// the follow variables is a long because the time, measured in miliseconds,
-// will quickly become a bigger number than can be stored in an int.
 long intervalA = 1000;      // interval at which to blink (milliseconds)
 void lightLedA () ;
 
 //////////////
 //  Second LED
-// Now with less global variables thanks to static (see function body)
+// Ora con meno variabili globali utilizzando static (vedi corpo della funzione)
 const int ledB = 12; //Secondo LED
-                     // ledState used to set the LED
 long previousMillisB = 0;    // will store last time LED was updated
                              // interval at which to blink (milliseconds)
 void lightLedB () ;