RSeries astromech firmware
|
#include <i2c/PeriscopeI2C.h>
Encapsulates the available i2c commands that can be sent to the ia-parts.com periscope lifter and periscope light kight.
Public Member Functions | |
PeriscopeI2C (const byte i2cAddress=0x20) | |
Constructor. More... | |
bool | readyForNewCmd () |
Only allow a new command every 4 seconds. More... | |
bool | isPeriscopeUp () |
void | setToggleMode (bool toggleMode) |
void | up () |
void | down () |
Down just means down no toggle. More... | |
void | randomFast () |
void | randomSlow () |
void | searchLightCW () |
void | searchLightCCW () |
void | faceForward () |
virtual void | handleCommand (const char *cmd) override |
Periscope Commands start with 'PS'. More... | |
Public Member Functions inherited from CommandEvent | |
CommandEvent () | |
Default Constructor. More... | |
virtual void | handleCommand (String cmd) |
Subclasses should implement this function to process commands specific to their device. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from CommandEvent | |
static void | process (char *cmd) |
Calls handleCommand() for each created CommandEvent subclass. More... | |
static void | process (const char *cmd) |
Calls handleCommand() for each created CommandEvent subclass. More... | |
static void | process (PROGMEMString pcmd) |
Calls handleCommand() for each created CommandEvent subclass. More... | |
|
inline |
Constructor.
Default i2c address for the periscope is 0x20
|
inline |
Down just means down no toggle.
|
inline |
|
inlineoverridevirtual |
Periscope Commands start with 'PS'.
Implements CommandEvent.
|
inline |
|
inline |
|
inline |
|
inline |
Only allow a new command every 4 seconds.
|
inline |
|
inline |
|
inline |
|
inline |