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