public constructor
| 61 | //public |
| 62 | //constructor |
| 63 | EX_Alarm::EX_Alarm(const __FlashStringHelper *name, byte pin, bool startingState, bool invertLogic, byte pinStrobe) : |
| 64 | Executor(name), |
| 65 | m_nPin(pin), |
| 66 | m_bInvertLogic(invertLogic), |
| 67 | m_nPinStrobe(pinStrobe) |
| 68 | { |
| 69 | m_nCurrentAlarmState = off; |
| 70 | m_bUseStrobe = false; |
| 71 | |
| 72 | setPin(pin); |
| 73 | //If user has supplied a pin for Strobe Light |
| 74 | if (pinStrobe < 255) { |
| 75 | m_bUseStrobe = true; |
| 76 | setPin(pinStrobe); |
| 77 | } |
| 78 | //else |
| 79 | //{ |
| 80 | // m_bUseStrobe = false; |
| 81 | //} |
| 82 | |
| 83 | |
| 84 | } |
| 85 | |
| 86 | //destructor |
| 87 | EX_Alarm::~EX_Alarm() |
nothing calls this directly
no outgoing calls
no test coverage detected