platform-atmelavr icon indicating copy to clipboard operation
platform-atmelavr copied to clipboard

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

Open silvioprog opened this issue 4 years ago • 1 comments

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

silvioprog avatar Dec 16 '20 18:12 silvioprog

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.

anno73 avatar Jan 29 '21 23:01 anno73