Arduino-Libraries icon indicating copy to clipboard operation
Arduino-Libraries copied to clipboard

EEPROMEx new features request

Open ievgen-kapinos opened this issue 11 years ago • 1 comments

Hi, I really enjoy with your read/write templates. But when I tried to reuse your library I stuck with many restrictions:

  1. 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
  2. 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
  1. I've application witch work during long period. I want to check _memSize, but not _allowedWrites at the same time
  2. In templates wrong check for last byte . For example isWriteOk(address+sizeof(value)) should be changed to isWriteOk(address+sizeof(value)-1)

I hope my contribution useful. Thanks, Evgeny

ievgen-kapinos avatar Jul 16 '14 06:07 ievgen-kapinos

Thanks! I will look into this when I have a bit of time

thijse avatar Apr 19 '15 19:04 thijse