RSeries astromech firmware
|
#include <body/Welder.h>
Controls a relay to a spark gap igniter to create some actual sparking.
Smoke will run for a maximum of 6.5 seconds with a minimum of 5 minute pause in between activations.
Public Member Functions | |
Welder (byte idPin, byte relayPin) | |
Constructor. More... | |
bool | isAttached () |
void | welderArm () |
Arm Welder. More... | |
void | welderDisarm () |
Disarm welder. More... | |
void | welderOn () |
Turn on the welder. More... | |
void | welderOff () |
Turn off the smoke machine. More... | |
virtual void | handleCommand (const char *cmd) override |
Welder Commands start with 'WL'. More... | |
virtual void | animate () override |
Perform a single frame of welder animation. 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.
|
inlineoverridevirtual |
Perform a single frame of welder animation.
Implements AnimatedEvent.
|
inlineoverridevirtual |
Welder Commands start with 'WL'.
Implements CommandEvent.
|
inline |
|
inline |
Arm Welder.
|
inline |
Disarm welder.
|
inline |
Turn off the smoke machine.
|
inline |
Turn on the welder.