Go Down

Topic: Modifying the Timer1 library for timer0 and timer2 (Read 50 times) previous topic - next topic

Hi everyone,
I'm working with an Arduino Uno and would like to modify the Timer1 library for timer0 and timer2. In other words, I would like to create separate Timer0 and Timer2 versions of the already existing Timer1 library.

I looked at the TimerOne.cpp and TimerOne.h files but couldn't understand them enough to modify, as I am unfamiliar with the internal architecture of the  ATmega328.

Can someone please tell me what I have to alter in these files in order to make it work with timer0 and timer2?

Robin2

It is probably unwise to mess with Timer0 as that is used for various Arduino purposes such as millis().

...R

In that case, can someone tell me what I have to alter in these files in order to make it work with timer2?

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy