Прилагаю код из которого буду пилить блок.
Код: Выделить всё
#include <avr/eeprom.h>
#define TEL_LEN 12
char tel[] = "+79168473742";
void tel_read() {
Serial.print("EEPROM= ");
for (uint8_t i=0; i<TEL_LEN; i++) {
Serial.print(eeprom_read_byte((const uint8_t*)i);
}
Serial.print('\n');
}
void tel_write() {
for (uint8_t i=0; i<TEL_LEN; i++) {
eeprom_write_byte((uint8_t*)i, (uint8_t)tel[i]);
}
}
void setup() {
Serial.begin(9600);
tel_read();
tel_write();
tel_read();
}
void loop() {}