]> git.piffa.net Git - sketchbook_andrea/blobdiff - basic/blinks/blink_3_ciclo_while/blink_3_ciclo_while.ino
Numerati bliks
[sketchbook_andrea] / basic / blinks / blink_3_ciclo_while / blink_3_ciclo_while.ino
index 9fcbf8c65fb3180ddbe7a7cb1a065d82ec88dd86..ff8dea5eda33db47e4a173e3f4bf0cf60439de9f 100644 (file)
@@ -1,7 +1,7 @@
 /*
   Blink v3
- Now with 2 variables and an extra LED (remember a ~320 ohms resistor).
Turns on an LED on for one second, then off for one second, repeatedly.
+ Accensione e spegnimanto di un LED utilizzando un ciclo
iterativo while per comandare il lampeggio.
  
  This example code is in the public domain.
  */
@@ -22,9 +22,9 @@ void setup() {
 // the loop routine runs over and over again forever:
 void loop() {
   while (iterator <10) {
-      rapido(); // accende e spegne rapidamente il LED
-      iterator = iterator +1 ; // incrementa l'iteratore
-      // iterator++ ; // equivalente
+    rapido(); // accende e spegne rapidamente il LED
+    iterator = iterator +1 ; // incrementa l'iteratore
+    // iterator++ ; // equivalente
   }
   lento();  // accende e spegne lentamente il LED
   // Domanda: a quanto equivale iterator ora?
@@ -53,3 +53,4 @@ void lento() {
 }
 
 
+