Go Down

Topic: Timer 4 and Timer 5 libraries for Arduino Mega (Read 7764 times) previous topic - next topic


Hello everyone, this is one of my first posts

I've recently discovered that there are more timers on Arduino Mega like Timer3, 4 and 5 but i've only found libraries for Timers from 0 to 3 (except for something really simple without the possibility to attach interrupts).

I've tried to write a couple of libraries for timer 4 and 5. The code takes inspiration from timer3 library

Pay attention that also timer 4 and 5 work only on particular pins:

Timer4 on PINS 6 - 7 - 8
Timer5 on PINS 44 - 45 - 46

I've tested my libraries in some projects and they work fine, maybe there will be something that needs to be improved. Here you can find both libraries attached to this post. Hope you'll find it useful for your projects and if you have any ideas to improve them well.... it will be a pleasure =)


<a href="http://www.deid.it">deid.it</a>

"Homo faber fortunae suae"


Thanks, for the libraries.
It seems as though you got pins 44 and 45 mixed up in the TimerFive library.

Go Up