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

Method update

Arduino/libraries/ST_Anything/IS_DoorControl.cpp:72–86  ·  view source on GitHub ↗

update function

Source from the content-addressed store, hash-verified

70
71 //update function
72 void IS_DoorControl::update()
73 {
74 //Turn off digital output if timer has expired
75 if ((m_bCurrentState == HIGH) && (millis() - m_lTimeTurnedOn >= m_lDelayTime))
76 {
77 m_bCurrentState = LOW;
78 writeStateToPin();
79 //Decrement number of active timers
80 if (st::Everything::bTimersPending > 0) st::Everything::bTimersPending--;
81 m_bTimerPending = false;
82 }
83
84 //check to see if input pin has changed state
85 InterruptSensor::update();
86 }
87
88 void IS_DoorControl::beSmart(const String &str)
89 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected