DccPlusPlus / BaseStation

DCC++ Base Station for Arduino Uno and Mega
208 stars 150 forks source link

Missing "#include <EEPROM.h>" in DCCpp_Uno.ino file. #8

Open jeffpiep opened 8 years ago

jeffpiep commented 8 years ago

Compile failed because #include used in Accessories.cpp was not also declared in DCCpp_Uno.ino.

Once I fixed that, it works just fine. Was able to get a locomotive running quickly with no issues. This is my first DCC experience - your software is great. Thanks!

malc-c commented 8 years ago

I'm new to using the arduino platform - can you advise how this was resolved as I have the same issue even when I copied the EEPROM.h file from the library folder to the same folder as the base station folder

jeffpiep commented 8 years ago

With Arduino you need to put all includes into the .ino file. I learned that here. So, just add a line to the top of the DCCpp_Uno.ino file with

include

That should fix it. In case it's helpful, I wrote a short post on setting the system up - it's not a "how-to," but it does go through the steps I took. Good luck!

malc-c commented 8 years ago

thanks for the reply... I've uploaded the code now without issue