Connect with us

Modifying the Arduino Timer1 library for timer2

Discussion in 'Microcontrollers, Programming and IoT' started by Sci-fi guy, Mar 2, 2015.

Scroll to continue with content
  1. Sci-fi guy

    Sci-fi guy

    6
    0
    Oct 12, 2014
    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
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-