4 Storaggio di un stringa di caratteri in EEPROM e sucessiva lettura
5 usando le libreire AVR: /usr/lib/avr/include/avr/eeprom.h
8 #include <avr/eeprom.h> //
10 // the current address in the EEPROM (i.e. which byte
11 // we're going to write to next)
16 char message[] = "Testo messaggio";
18 Serial.println("Storaggio valore");
20 //eeprom_write_block(message, (void *)addr, strlen(message) + 1);
21 // Pointer all'array di carattere, punto in cui scrivere (su 1023), lunghezza
22 // Eseguire una volta sola, caricare lo sketch
23 // e immediatamente commetare e ripetere l'upload.
28 Serial.print("Lettura Valore: ");
29 eeprom_read_block(&testo, (void *)addr,23);
30 Serial.println(testo);