Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 784 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 784 Bytes

SparkCore-PIR

A simple PIR libary for Spark Core.

Components Required

Example Usage

See this example for details, or, in a nutshell:

OM::Pir pir(D0);
void setup() {
  pir.setupPinMode();
}
void loop() {
  if (pir.calibrated()) {
    pir.readTheSensor();
    // calibrate and read the sensor. When value changed, perform action
  }
}

Useful Links