Timer 1...again

Hi Folks,

I'm using the TimerOne library and of course have run into the pitfalls well documented in your forum. The command "Timer1.start" does not work. "Timer1.restart" is also non-functional. If either command is used the program misbehaves. I have perused all the articles I could find on this, but there seems to be no definite answer that I can find to solve that problem. Before I hit the pdf on the 328, and configure all functions manually, does anybody know of any Timer1 library in which the functions actually work? the worst part is that the examples for the TimerOne library, which use these commands, do not work. Someone wrote those examples, and I assume they worked for them, being as they published them, so what's the trick. Any help would be greatly appreciated.

elmachopardo:
I'm using the TimerOne library

I will stop here. First dump that library...

Mostly third party libraries in Arduino just simplify the code by running it on the background, but almost always at some cost... On the first moment it can be an easier way to do something, but on the long run it won't.

So, you should use the timer directly, it's somewhat tricky, but once you learn will be much easier to mantain...
Here is something to help you get started.

Arduino 101 timers and interrupts
Arduino timer interrupts