Arduino-Libraries
Arduino-Libraries copied to clipboard
EEPROMEx new features request
Hi, I really enjoy with your read/write templates. But when I tried to reuse your library I stuck with many restrictions:
- I need to change "cpp" source to disable
#define _EEPROMEX_DEBUG. IMHO better way to use#ifndef _EEPROMEX_DEBUG true. It will allow disable debugging and use unchanged library - I tried too inherit your class and reuse most of code with my external memory on I2C AT24C32 chip. But:
- hardware
eeprom_read...calls are spreaded over whole code - readByte(), writeByte(), isWriteOk() and isReady() are not
virtual
- I've application witch work during long period. I want to check
_memSize, but not_allowedWritesat the same time - In templates wrong check for last byte . For example
isWriteOk(address+sizeof(value))should be changed toisWriteOk(address+sizeof(value)-1)
I hope my contribution useful. Thanks, Evgeny
Thanks! I will look into this when I have a bit of time