Go Down

Topic: Problem with EEPROM (Read 64 times) previous topic - next topic

M_D_T

HI
I'm having a problem compiling a sketch.
I'm using the latest 1.7 IDE on a Mac. I got an error message saying that EEPROM could not be found, I fixed this by adding the EEPROM to the library file in the package, as it wasn't included.
I now get the error message below, even after updating to the latest EEPROM version, as I saw it changed significantly early 2015, and there are example files of EEPROM.get and .put in the library folder.
Can anyone offer some guidance?
Code: [Select]
Arduino: 1.7.10 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Accessories.cpp: In member function 'void Turnout::activate(int)':
Accessories.cpp:77:12: error: 'class EEPROMClass' has no member named 'put'
     EEPROM.put(num,data.tStatus);
            ^
Accessories.cpp: In static member function 'static void Turnout::load()':
Accessories.cpp:178:12: error: 'class EEPROMClass' has no member named 'get'
     EEPROM.get(EEStore::pointer(),data); 
            ^
Accessories.cpp: In static member function 'static void Turnout::store()':
Accessories.cpp:196:12: error: 'class EEPROMClass' has no member named 'put'
     EEPROM.put(EEStore::pointer(),tt->data);
            ^
Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

CrossRoads

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

M_D_T

From the main site, when I install and go to "About" it says version 1.7.10

AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

spycatcher2k

Quote
From the main site
Nope - you got it from arduino.org - go there for support, or download the correct one from arduino.cc
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design & Assembly work undertaken - Arduino repairs & testing - PM for details.

Delta_G

From the main site, when I install and go to "About" it says version 1.7.10

You were on the counterfeit site.  The latest official version is 1.6.9. Make sure you go to Arduino.cc and not Arduino.org.
Ad hoc, ad loc, and quid pro quo.  So little time - so much to know!  ~Jeremy Hillary Boob Ph.D

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy