cmaglie / FlashStorage

A convenient way to store data into Flash memory on the ATSAMD21 and ATSAMD51 processor family
203 stars 69 forks source link

getDataPtr method for FlashAsEEPROM #22

Open thelsing opened 6 years ago

thelsing commented 6 years ago

Could you add a getDataPtr method that returns _eeprom.data to the FlashAsEEPROM class? This would make the lib more compatible to the esp8266 EEPROM class. See https://github.com/esp8266/Arduino/blob/f77645465c25f07ded11091a39bad25ef1ec8c1d/libraries/EEPROM/EEPROM.cpp#L135

cmaglie commented 6 years ago

Would you like to submit a PR for that?

thelsing commented 6 years ago

I submitted #23