Although I'm not new to controllers/assemblers/or programming, I am new to the Arduino C compiler and its environment. The C code itself isn't the problem, it's all the includes/paths/references, etc that has me pulling my hair out. Where do I find learning reference material for this?
Here's my problem specifically; I've gone to this link and downloaded the timerthree.zip.
The path it says to install doesn't exist. When I try to compile this small test program, it complains about not finding files/references, etc.
#include "TimerThree.h"
void setup()
{
pinMode(13, OUTPUT);
Timer3.initialize(1000000); // initialize timer1, and set a 1/2 second period
Timer3.attachInterrupt(callback); // attaches callback() as a timer overflow interrupt
}
When I try to compile this small test program, it complains about not finding files/references, etc.
Which files can't it (whatever it is) find?
What operating system are you using? What version of the IDE?
The path it says to install doesn't exist.
The instructions are a bit vague. The first level that the path shown refers to is where you installed the version of the IDE you are using.
If you installed 0022 relative to your home directory, on Win7, for instance, the core libraries would be in
C:\Users<userid>\Documents\arduino-0022\libraries
Notice that that is for core libraries. Timer3 is not a core library, so it really shouldn't be installed there.
There is another location that non-core libraries go. In your sketch folder, create (if needed) a folder called libraries, and put non-core libraries there.
The advantage of doing this is that you will not need to find and re-download all the non-core libraries with future upgrades to the IDE.
I am running IDE version 0022 in Window 7. I've created a directory named 'libraries' in my sketch folder and placed the timer3 folder within it. I went to the SKETCH>IMPORT LIBRARY> and selected TIMER3 under contributed. Now when I compile, these are my errors.
If you don't have an Arduino Mega board (either '1280 or '2560) selected, you get those errors. That library will not work with Duemilanove, Uno or other non-Mega boards.