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

Method init

Arduino/libraries/ST_Anything/IS_Motion.cpp:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 void IS_Motion::init()
52 {
53 if (debug){
54 Serial.println(F("IS_Motion: 30 second Motion Sensor Calibration Started..."));
55 }
56 //calibrate the PIR Motion Sensor
57 digitalWrite(getInterruptPin(), LOW);
58 timer=millis();
59 //delay(30000);
60 }
61
62 //called periodically by Everything class to ensure ST Cloud is kept consistent with the state of the motion sensor
63 void IS_Motion::refresh()

Callers

nothing calls this directly

Calls 1

printlnMethod · 0.80

Tested by

no test coverage detected