Ah, that is a very different problem. This is due to the Pololu Orangutang libraries not being updated to 1.0 yet.
I’m not sure about the Orang buzzer example error. Since the other examples for that lib compile fine, I guess that there may be a problem with the sketch/program itself.
For the second error, you will need to edit each of the offending files to include <Arduino.h> instead of “wiring.h”. This error will show up on the LCD, QTR, and pushbutton libs, and possible one or two others.
[You can now download them in the attached zip file, but I do suggest you read through this anyway if it’s new to you.]
Here are the lines to change:
#ifndef ARDUINO
#include "../OrangutanTime/OrangutanTime.h"
#else
#include "wiring.h" // provides access to delay() and delayMicroseconds()
#endif[/code]That needs to be changed to this:[code]#ifndef ARDUINO
#include "../OrangutanTime/OrangutanTime.h"
#else
#include <Arduino.h>
//#include "wiring.h" // provides access to delay() and delayMicroseconds()
#endif
I only comment out the wiring include because you will need to change it back to use the library with any pre-1.0 Arduino IDEs.
You can basically just run/verify an example from each library. If it needs that change, you will get that error:
Error compiling.
/Users/petej/Documents/Arduino/libraries/PololuQTRSensors/PololuQTRSensors.cpp:57:75: error: wiring.h: No such file or directory
/Users/petej/Documents/Arduino/libraries/PololuQTRSensors/PololuQTRSensors.cpp: In member function 'void PololuQTRSensorsRC::readPrivate(unsigned int*)':
/Users/petej/Documents/Arduino/libraries/PololuQTRSensors/PololuQTRSensors.cpp:583: error: 'delayMicroseconds' was not declared in this scope
The number 57 in the error tells you what line number has the offending code. In this case it points you exactly where you need to go to make the above change. This will be true with the other libraries also when they give that error.
Hopefully Pololu will update their libraries soon for the official download. They probably need to thoroughly test the code though first, which is understandable. So far, making the changes I described has worked perfectly for me, but this is not well tested code.
You said the code was compiling ok, but you are also able to upload to the 3pi from 1.0 right?
Well, I just attached all my edited Pololu LIBs to the post in a ZIP. Also pseudo-randomly included is the updated L3G4200D Lib, which I happened to do when I needed it a couple days ago.
@Pololu, I suggest you guys take a look at these.
PololuLIBsArduino1_0.zip (106 KB)