I recently came along a tutorial of jacking in an optical mouse (chip A2610) with Arduino from this link : http://www.martijnthe.nl/2009/07/interfacing-an-optical-mouse-sensor-to-your-arduino/
Now when I try to compile the code following the instructions written in the code itself as comments I get the following errors:
First What I did:
- Downloaded the library and changed it's name to simply "OptiMouse"
- Tried to run the "coordinate" example. It gave me following errors:
Coordinates.cpp:16:21: error: PAN3101.h: No such file or directory Coordinates.pde:-1: error: 'PAN3101' does not name a type Coordinates.cpp: In function 'void setup()': Coordinates.pde:-1: error: 'Optical1' was not declared in this scope Coordinates.cpp: In function 'void loop()': Coordinates.pde:-1: error: 'Optical1' was not declared in this scope
Second what I tried:
moved the ADNS_2610.cpp and ADNS_2610.h and ADNS_2610.o outside the driver folder where OptiMouse.cpp and OptiMouse.h are located (as mentioned in the code comment).
Same errors I got.
I don't know what to do now. help me .