![]() |
RSeries astromech firmware
|
#include <dome/ButtonController.h>
Controller class for ia-parts.com Dome Button Controller.
Controller class for ia-parts.com Dome Button Controller. Allows you to control a relay or send i2c/serial/jawa/smq requests in response to button sequences.
Example sketch:
Inheritance diagram for ButtonController:
Collaboration diagram for ButtonController:Public Member Functions | |
| ButtonController (void(*flasher)(byte color, int rate)=NULL, const byte leftInputPin=2, const byte rightInputPin=3) | |
| virtual void | setup () override |
| Subclasses must implement this function to perform any necessary setup that cannot happen in the constructor. More... | |
| virtual void | animate () override |
| Subclasses must implement this function to run through a single frame of animation/activity. More... | |
| void | setOutputPin (byte domePin, bool state) |
Public Member Functions inherited from SetupEvent | |
| SetupEvent () | |
| Default Constructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SetupEvent | |
| static void | ready () |
| Calls setup() for each created AnimatedEvent subclass. More... | |
|
inline |
|
inlineoverridevirtual |
Subclasses must implement this function to run through a single frame of animation/activity.
Subclasses should not call delay() or otherwise block.
Implements AnimatedEvent.
|
inline |
|
inlineoverridevirtual |
Subclasses must implement this function to perform any necessary setup that cannot happen in the constructor.
Implements SetupEvent.