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 |
A class to handle a toggle switch.
This class permits to handle in an easy way any toggle switch
1.8.5