GY-63_MS5611/libraries/PIR/examples/PIR_demo/PIR_demo.ino
rob tillaart 0d98f11aba 0.1.0 PIR
2022-12-14 19:17:10 +01:00

38 lines
470 B
C++

//
// FILE: PIR_demo.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo pir sensor class
// URL: https://github.com/RobTillaart/PIR
#include "PIR.h"
PIR P;
void setup()
{
Serial.begin(115200);
while (!Serial);
Serial.println(__FILE__);
Serial.print("PIR_LIB_VERSION: ");
Serial.println(PIR_LIB_VERSION);
P.add(3);
P.add(4);
P.add(5);
}
void loop()
{
uint8_t x = P.read();
Serial.println(x, HEX);
delay(1000);
}
// -- END OF FILE --