jcchurch13 / Mechaduino-Firmware

Hardware available here:
http://tropical-labs.com
Other
389 stars 232 forks source link

Missing file include and invalid type. #17

Closed Razaekel closed 7 years ago

Razaekel commented 7 years ago

Controller.cpp has a '#include ' but that include is not included in Mechaduino_01.ino, which gives an error on compiling.

After adding '#include "SPI.h"' to the .ino, it gives a ''PROGMEM' does not name a type' error in Parameters.h. Additionally, from what I can find out about PROGMEM in the Arduino, it's only supported in the AVR architecture.

Razaekel commented 7 years ago

After removing the references to PROGMEM, it gave another error about a missing "Wire.h". After adding this include to the .ino, it compiled fine.

mikeanton commented 7 years ago

I'm pretty sure I had to upgrade to the most recent Arduino IDE (1.6.12), and then it compiled fine. I had problems like this as well using a slightly older version (1.6.5).

Razaekel commented 7 years ago

@mikeanton You are correct, updating to the latest Arduino IDE (1.6.13) allows it to compile.

@jcchurch13 This IDE version requirement should be mentioned in the README.

Closing this issue, as it's no longer valid.