This method returns the size, in bits, of timer registers for counting and comparation purposes (int).
timer1.getSize()
timer1: a variable of type TimerInstance_Class
(:source lang=c :)
TimerInstance_class timer1; LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup () {
unsigned size = timer1.getSize() if (size > 31) lcd.print ("Shifting more then 31 is not valid");
} (:sourceend:)
Corrections, suggestions, and new documentation can be added directly to the wiki page. Scroll to the bottom, choose "Edit Page" and use "Papilio" as the password.