platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
136 stars 104 forks source link

[FEATURE REQUEST] EEPROM support for ATtiny85 (Digispark board) #227

Open silvioprog opened 3 years ago

silvioprog commented 3 years ago

Hi.

It would be nice to provide the official EEPROM header to be used in ATtiny families, commonly present in Digispark boards.

When we try to use it, the IDE reports the following error:

cannot open source file "EEPROM.h"

but, if we try to build it in Arduino IDE (even the VSCode based one), it builds fine our program, so the EEPROM.h seems to be a regular header, like Arduino.h.

cheers

anno73 commented 3 years ago

I have the same issue. For now I copied ...\arduino-1.8.13\hardware\arduino\avr\libraries\EEPROM to ...\.platformio\packages\framework-arduino-avr-digistump\libraries. This seems to solve the issue for now. Putting the lib to project's src folder is no good, as it is not found by other libs (for me this would be EEPROMWearLevel). So it really would be nice to have this lib in the distribution.