13 #if defined(USE_SOFTWARE_TWI) 15 #include "Software/TWI.h" 16 Software::TWI<BOARD::D18, BOARD::D19>
twi;
18 #include "Hardware/TWI.h" 35 Serial.println(F(
"eeprom:error: check sub-address and wiring"));
41 memset(page, 0,
sizeof(page));
54 if (offset < 0x10) Serial.print(
'0');
55 if (offset < 0x100) Serial.print(
'0');
56 Serial.print(offset, HEX);
58 for (
size_t i = 0; i <
sizeof(page); i++) {
61 if (v < 0x10) Serial.print(
'0');
int read(void *buf, uint32_t offset, size_t size)
int write(uint32_t offset, const void *buf, size_t size)
Storage::Block block(eeprom, BLOCK_MAX)