TimerInstance_Class

getSize()

Description

This method returns the size, in bits, of timer registers for counting and comparation purposes (int).

Syntax

timer1.getSize()

Parameters

timer1: a variable of type TimerInstance_Class

Example

(:source lang=c :)

  1. include <VGALiquidCrystal.h>;
  2. include <Timer.h>

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.

  

Share |