MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / EX_Alarm

Method EX_Alarm

Arduino/libraries/ST_Anything/EX_Alarm.cpp:63–84  ·  view source on GitHub ↗

public constructor

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected