|
RSeries astromech firmware
|
|
Go to the documentation of this file.
86 if (*cmd++ ==
'B' && *cmd++ ==
'M')
88 if (cmd[0] ==
'O' && cmd[1] ==
'N' && cmd[2] ==
'\0')
92 else if (cmd[0] ==
'O' && cmd[1] ==
'F' && cmd[2] ==
'F' && cmd[3] ==
'\0')
100 static const uint32_t MAXIMUM_TIME = 6500L;
101 static const uint32_t PAUSE_TIME = 1*60*1000L;
Base class for all command enabled devices. CommandEvent::handleCommand() is called for each device e...
Definition: CommandEvent.h:17
virtual void handleCommand(const char *cmd) override
BadMotivator Commands start with 'BM'.
Definition: BadMotivator.h:84
Controls a relay to a smoke machine and some LEDs.
Definition: BadMotivator.h:52
Controls a relay.
Definition: RelaySwitch.h:18
BadMotivator(byte smokeRelayPin)
Constructor.
Definition: BadMotivator.h:59
void relayOn(uint32_t switchOffMS=0)
Turn on the smoke machine.
Definition: RelaySwitch.h:40
void relayOff()
Turn off the smoke machine.
Definition: RelaySwitch.h:58
void smokeOn()
Turn on the smoke machine.
Definition: BadMotivator.h:68
void smokeOff()
Turn off the smoke machine.
Definition: BadMotivator.h:76