3 #include <mrm-action.h>
13 #define MRM_SWITCHES_COUNT 2
17 std::vector<bool[MRM_SWITCHES_COUNT]>* lastOn;
18 std::vector<ActionBase * [MRM_SWITCHES_COUNT]>* offOnAction;
19 std::vector<uint8_t[MRM_SWITCHES_COUNT]>* pin;
34 void actionSet(
ActionBase* action, uint8_t switchNumber, uint8_t deviceNumber = 0);
41 void add(uint8_t pin1 = 0xFF, uint8_t pin2 = 0xFF,
char * deviceName = (
char *)
"");
48 bool read(uint8_t switchNumber, uint8_t deviceNumber = 0);
Definition: mrm-action.h:7
Definition: mrm-switch.h:16
void add(uint8_t pin1=0xFF, uint8_t pin2=0xFF, char *deviceName=(char *)"")
Definition: mrm-switch.cpp:43
bool read(uint8_t switchNumber, uint8_t deviceNumber=0)
Definition: mrm-switch.cpp:65
void test()
Definition: mrm-switch.cpp:76
Mrm_switch(Robot *robot=NULL, uint8_t maxDevices=1)
Definition: mrm-switch.cpp:9
Definition: mrm-robot.h:42
Definition: mrm-board.h:356