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

Method update

Arduino/libraries/ST_Anything/IS_Motion.cpp:80–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 void IS_Motion::update()
81 {
82 if(calibrated)
83 InterruptSensor::update();
84 else
85 if(millis()>timer+30000)
86 {
87 calibrated=true;
88
89 //get current status of motion sensor by calling parent class's init() routine - no need to duplicate it here!
90 setInterruptPin(getInterruptPin());
91 InterruptSensor::init();
92
93 if (debug)
94 {
95 Serial.println(F("IS_Motion: Motion Sensor Calibration Finished"));
96 }
97 }
98 }
99
100}

Callers 1

updateSensorsMethod · 0.45

Calls 1

printlnMethod · 0.80

Tested by

no test coverage detected