Timer 1 capture/compare library. This library is specifically for using the capture & compare feature of Timer1.
Additional modes and compare output setting could be added to the library.
This library has a built-in instance of the class. It is not intended to be instantiated. Use the built-in instance: Timer1. This example initializes Timer1 to rollover and interrupt once per second:
Timer1.initialize(TIMER_DIV256_62500HZ, 62500);
Timer1.attachRolloverInterrupt(myCallback);
Timer1.start();