Seeedstudio stalker v2 and Arduino IDE 1.0.1 can't get the example code to work?

Hi All,

I installed the Arduino IDE 1.0.1 today and was able to run some basic sketches on the stalker v2 I have, so programming works (with the uartsbee v3.1). However, I cannot get the example code to work (the example mentioned here: http://www.seeedstudio.com/wiki/Seeeduino_Stalker_v2.0#Source_Code_Examples).

Whatever I do, it cannot compile and complains that a lot of stuff is not "declared in this scope". It starts for example withe line in battery.cpp that sets the analogReference(INTERNAL). Compiler complains that INTERNAL is not declared.

I am guessing that I am doing something wrong with the location of the files, but dont know what.

Can somebody tell me where to put the cpp and .h files and the sketch? Mind you that I am using the latest Arduino IDE (the example mentions 0019 instead). And I running this on a Mac, but that seems to make no difference.

Any help is appreciated, because I would love the example to work so I can figure out how to use it for my own datalogging :-)

Something in there is not compatible with IDE 1.0+.

Search through the files for

#include <WProgram.h>

and replace with

#include "Arduino.h"

Wow, thanks for the quick reply! I will give that a go tonight!

No problem. It will almost certainly lead to a whole load more errors though. You might be better off downloading IDE 0023, or looking for more up to date examples.

that's actually what I had started to do: download and install IDE 0022 or 0023, see if that works and work from there. However, sooner or later I will want to go to Arduino 1.0, but not sure what I will have to change then.