Go Down

Topic: Having trouble using code I downloaded (Read 941 times) previous topic - next topic

ilya2006

yeah, I went and downloaded the timer, extracted it, put it in a folder and put that folder into the library folder for the arduino.

ilya2006

This is what i got in the error bar
timer.cpp: In function 'void timer_service()':
timer.cpp:50: error: 'Timer1' was not declared in this scope
timer.cpp: In function 'void timer_set_period(long unsigned int)':
timer.cpp:58: error: 'Timer1' was not declared in this scope

PaulS

Quote
yeah, I went and downloaded the timer

From where?

Quote
put it in a folder

Did that folder have a name?

Quote
and put that folder into the library folder for the arduino.

Which one? There are two - the right one and the wrong one. The right one is the libraries (not library) folder in the sketch folder. The wrong one is the libraries folder in the arduino-x.x.x folder. That one is for core libraries only.

ilya2006

Yes, I do believe I put it in the correct folder, I did put it in the Libraries folder, I made a separate folder called Timer1 and dragged it into the libraries folder and i got it from here -> http://playground.arduino.cc/code/timer1

Go Up