Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / servotimer2 problems on: January 29, 2013, 08:22:53 am
I installed within the libraries in a folder called ServoTimer2 the 3 files that make up the zip.
When I try to compile this simple code:

#include <ServoTimer2.h>

void setup(){}

void loop(){}


I get the following error.
/home/marcelo/arduino-1.0.3/libraries/ServoTimer2/ServoTimer2.cpp:5:26: error: WConstants.h: No existe el archivo o el directorio
/home/marcelo/arduino-1.0.3/libraries/ServoTimer2/ServoTimer2.cpp: In function ‘void __vector_9()’:
/home/marcelo/arduino-1.0.3/libraries/ServoTimer2/ServoTimer2.cpp:35: error: ‘LOW’ was not declared in this scope
/home/marcelo/arduino-1.0.3/libraries/ServoTimer2/ServoTimer2.cpp:35: error: ‘digitalWrite’ was not declared in this scope
/home/marcelo/arduino-1.0.3/libraries/ServoTimer2/ServoTimer2.cpp:42: error: ‘HIGH’ was not declared in this scope
/home/marcelo/arduino-1.0.3/libraries/ServoTimer2/ServoTimer2.cpp:42: error: ‘digitalWrite’ was not declared in this scope
/home/marcelo/arduino-1.0.3/libraries/ServoTimer2/ServoTimer2.cpp: In member function ‘uint8_t ServoTimer2::attach(int)’:
/home/marcelo/arduino-1.0.3/libraries/ServoTimer2/ServoTimer2.cpp:65: error: ‘OUTPUT’ was not declared in this scope
/home/marcelo/arduino-1.0.3/libraries/ServoTimer2/ServoTimer2.cpp:65: error: ‘pinMode’ was not declared in this scope


Thank you very much to who can guide me in the solution.

PS: Use this library to use the module VirtualWire, if they know of any better combination even better.
Pages: [1]