2021-01-29 12:31:58 +01:00

33 lines
412 B
C++

//
// FILE: HearBeat_dutyCycle.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo
#include "HeartBeat.h"
HeartBeat HB;
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.println(HEARTBEAT_LIB_VERSION);
HB.begin(13, 3); // PIN 13 with frequency 3
HB.setDutyCycle(10.0); // 10% time high
}
void loop()
{
HB.beat();
// do other stuff here
}
// -- END OF FILE --