zorgrian / trackuino

Automatically exported from code.google.com/p/trackuino
0 stars 0 forks source link

Does not compile under arduino-ide-1.0 #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It Does not compile under arduino-ide-1.0. 

Several errors in modem.cpp

modem.cpp:35:22: error: WProgram.h: No existe el fichero o el directorio
modem.cpp: In function ‘void modem_setup()’:
modem.cpp:125: error: ‘OUTPUT’ no se declaró en este ámbito
modem.cpp:125: error: ‘pinMode’ no se declaró en este ámbito
modem.cpp:126: error: ‘LOW’ no se declaró en este ámbito
modem.cpp:126: error: ‘digitalWrite’ no se declaró en este ámbito

Cheers
Nacho Mas

Original issue reported on code.google.com by mas.igna...@gmail.com on 7 Dec 2011 at 9:50

GoogleCodeExporter commented 9 years ago
That's right... There are lots of backwards incompatible changes in 1.0. Mainly 
WProgram.h has been replaced with Arduino.h, but the Serial semantics also 
changed from blocking to non-blocking, so it's not a trivial update.

Just use Arduino 22 for now.

Original comment by jmart...@gmail.com on 7 Dec 2011 at 10:41

GoogleCodeExporter commented 9 years ago
No need to revert to Arduino 22 ... just make all the necessary changes & 
compile under Arduino-1.0.1

Replace all:

WProgram.h -> Arduino.h
Wire.send -> Wire.write
Wire.receive -> Wire.read

Original comment by jbuck2...@gmail.com on 19 Aug 2012 at 6:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I can confirm that  compiling goes succesfully only changing WProgram labels in 
all files where it's mentioned.
Wire send and receive seems not mentioned.
Thanks
Ik1zqj

Original comment by ik1...@gmail.com on 31 Dec 2012 at 8:40

GoogleCodeExporter commented 9 years ago
We've got a repository with the modified code working.
https://github.com/TechplexEngineer/trackuino

We built ~20 of them last semester and are working on a board with the option 
to go with through hole components.

Original comment by Techplex.Engineer on 19 Nov 2013 at 3:19