X-Git-Url: http://git.piffa.net/web?p=sketchbook_andrea;a=blobdiff_plain;f=multitasking%2FBlinkWithoutDelay_7_struct%2FBlinkWithoutDelay_7_struct.ino;h=6f7517d00e697318334a4866b37cd7193f7ffef9;hp=8b555279498cbca4d3b33fef1d0f6ebcb5ad9992;hb=e4de8b95aa9b8019b3fff9416918a4840aae46b5;hpb=98f12e9ba20d5b505b1b6506569e31af9ac3ba89 diff --git a/multitasking/BlinkWithoutDelay_7_struct/BlinkWithoutDelay_7_struct.ino b/multitasking/BlinkWithoutDelay_7_struct/BlinkWithoutDelay_7_struct.ino index 8b55527..6f7517d 100644 --- a/multitasking/BlinkWithoutDelay_7_struct/BlinkWithoutDelay_7_struct.ino +++ b/multitasking/BlinkWithoutDelay_7_struct/BlinkWithoutDelay_7_struct.ino @@ -1,7 +1,17 @@ /* Blink without Delay - Soluzione - Introdotto un argomento per la funzione che nodifica l'intervallo di lampeggio +Raggruppamento delle proprieta' dell'oggetto in uno struct. +Una funzione accetta e restituisce uno struct di questo tipo +facendo una "copy by value" (vedi esercizio con i pointers per +una "copy by reference"). + +Questo e' un esercizio avanzato: propedeutico a capire le basi +della programmazione a oggetti (suggerimento: +https://lab.piffa.net/sketchbook_andrea/RGB_LED/ + +e' piu' semplice dato che non usa pointers e references +non dovendo modificare in modo permanente nessuna variabile +dello struct). */ struct blinkLed {