Mutila: Mouse's Utilities for Arduino
Oft-used utilities: debouncing buttons, averaging samples, and so on.
|
#include <AbstractButton.h>
Public Member Functions | |
AbstractButton () | |
virtual void | begin () |
virtual bool | on ()=0 |
Abstract button class.
Abstracts out a thing with on and off states, without saying what might cause those states
Definition at line 10 of file AbstractButton.h.
|
inline |
Constructor.
Definition at line 14 of file AbstractButton.h.
|
inlinevirtual |
Initialization.
It is typical to call the begin() method from the Arduino sketch's setup() function. This will call pinMode() for you, with arguments appropriate for the button logic type.
Reimplemented in AnalogInputButton, and DigitalInputButton.
Definition at line 23 of file AbstractButton.h.
|
pure virtual |
Test instantaneous input state.
Implemented in DebouncedButton, AnalogInputButton, DebouncedAnalogButton, DebouncedDualButton, DualInputButton, and DigitalInputButton.