Arduino Tinker Library
 All Classes Functions Variables
Public Member Functions | Public Attributes | List of all members
Tinker::ToggleSwitch Class Reference

A class to handle a toggle switch. More...

#include <ToggleSwitch.h>

Public Member Functions

 ToggleSwitch (uint16_t pin=-1)
 Creates an unitialize toggle switch.
 
int pin () const
 Returns current switch pin.
 
void setPin (uint16_t pin)
 Sets switch pin.
 
boolean enabledOnLow () const
 Returns true if the switch is enabled on LOW.
 
boolean pullUpResistor () const
 Returns true if pull up resistor is enabled.
 
void initialize (bool enabledOnLow=false, bool pullUpResistor=false)
 Initialiazes the toggle switch.
 
virtual boolean enabled () const
 Returns toggle switch status.
 

Public Attributes

AbstractLog_log
 

Detailed Description

A class to handle a toggle switch.

This class permits to handle in an easy way any toggle switch

Author
Nicola Pezzotti

The documentation for this class was generated from the following files: