X-Git-Url: http://git.piffa.net/web?a=blobdiff_plain;f=multitasking%2FBlinkWithoutDelay_7_struct%2FBlinkWithoutDelay_7_struct.ino;h=61a53b5b587dfa93160f11f616e5d62f89d93745;hb=273776f9e56f1c7478d69ff4c3f653b349e8b3fe;hp=621083ede47f4896e2b9d56789892295fb34ccbf;hpb=90f3116fa09ed583c137d1df423b9913f55522fa;p=sketchbook_andrea diff --git a/multitasking/BlinkWithoutDelay_7_struct/BlinkWithoutDelay_7_struct.ino b/multitasking/BlinkWithoutDelay_7_struct/BlinkWithoutDelay_7_struct.ino index 621083e..61a53b5 100644 --- a/multitasking/BlinkWithoutDelay_7_struct/BlinkWithoutDelay_7_struct.ino +++ b/multitasking/BlinkWithoutDelay_7_struct/BlinkWithoutDelay_7_struct.ino @@ -21,13 +21,13 @@ blinkLed ledB = { 12, LOW, 500, 0}; void setup() { - pinMode(ledA.ledPin, OUTPUT); + pinMode(ledA.ledPin, OUTPUT); // Domanda: integrare l'impostazione del LED nel codice della funzione. pinMode(ledB.ledPin, OUTPUT); } void loop() { - ledA = lightLed(ledA ); + ledA = lightLed(ledA ); // Aggiorna lo stato del LED in base all'esecuzione della funzione ledB = lightLed(ledB ); }