Sci-fi guy
- Oct 12, 2014
- 6
- Joined
- Oct 12, 2014
- Messages
- 6
Hi everyone,
I'm working with an Arduino Uno and would like to modify the already existing Timer1 library for timer2. In other words, I would like to create a separate Timer2 version 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 timer2?
Arduino Timer1 library: http://playground.arduino.cc/Code/Timer1
I'm working with an Arduino Uno and would like to modify the already existing Timer1 library for timer2. In other words, I would like to create a separate Timer2 version 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 timer2?
Arduino Timer1 library: http://playground.arduino.cc/Code/Timer1