I'm still getting accustomed to how the whole Arduino IDE works, so this is a bit of a n00b question, sorry.
I want to use http://www.arduino.cc/playground/Main/WiiChuckClass to use with a nunchuck (obviously). The only problem is that I'm not quite sure what to do with the Arduino 1.0 WiiChuck.h file. I've tried putting it in the same directory as my project (just the sample code), but when I come to run it, I get an error "WiiChuck does not name a type", and this:
Nunchuck1.cpp:4:22: error: WiiChuck.h: No such file or directory Nunchuck1:10: error: 'WiiChuck' does not name a type Nunchuck1.cpp: In function 'void setup()': Nunchuck1:18: error: 'chuck' was not declared in this scope Nunchuck1.cpp: In function 'void loop()': Nunchuck1:26: error: 'chuck' was not declared in this scope
I've just copied all the code straight from the playground, so I'm not sure what I'm doing wrong. (As I said, my source code is just the example given on the page, so no need for clarification there.)
Thanks in advance to anyone who can help,
Alex