Closed prologician closed 8 years ago
It looks like the Arduino team moved this library out of the global scope in recent releases - you can grab and use this copy here: EEPROM.zip
It will also be fixed the next time we push a release.
Thanks
Your include is incorrect. AVR-specific header files are in the avr subfolder, so the statement should be:
Make that change and your test code compiles.
Could you be more specific about which folder you put eeprom.h in? In my case, eeprom.h is called from the NmraDCC library and I don't want to mess up the library.
BTW, is it possible that the Micronucleus bootloader and NmraDCC conflict since NmraDCC accesses the EEPROM where the Micronucleus is located?
You should be able to install it directly via the Arduino IDE
If that doesn't work for some reason, this is where it is in the repo structure... so depending on your OS, you'll need to golooking for the Arduino15\packages
directory, and then you should be able to figure it out from there. On Windows, this is located in %localappdata%
and I think it's the home (~) directory on Mac and Linux.
https://github.com/digistump/DigistumpArduino/tree/master/digistump-avr/libraries/EEPROM
I would strongly suggest you look at https://github.com/ArminJo/DigistumpArduino also as a more up to date and actively supported version of the Arduino core for these boards ;)
Thanks, it worked. Plus I am using the latest hex version of Digistump.
NmraDCC is unfortunatelly not working. Could be the frequency difference as this library heavily depends on precise timing. (8MHz vs 16.5MHz)
Environment: Win7 x64; Arduino IDE 1.6.7; Digistump AVR Boards v1.6.7 Board: Digispark (Default - 16.5mhz)
From the specification sheet http://www.atmel.com/devices/attiny85.aspx, ATTiny85 has 512 bytes of EEPROM memory; the forum thread https://digistump.com/board/index.php?topic=1132.0 shows that this is accessible using the functions provided through the EEPROM.h include. However, it appears that that include cannot be found during the build process.
Sample program (blank program, plus the include):
Error produced: