Pages: 1 [2]   Go Down
Author Topic: Having trouble using code I downloaded  (Read 805 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 652
Posts: 50869
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: 1 [2]   Go Up
Jump to: