2021-05-28 13:30:27 +02:00

37 lines
418 B
C++

//
// FILE: sinusHeartBeat.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo
#include "HeartBeat.h"
HeartBeat HB;
int frequency = 1;
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.println(HEARTBEAT_LIB_VERSION);
HB.begin(13, frequency);
}
void loop()
{
HB.beat();
float f = 5 * (1 + sin(millis()/10000));
HB.set(f);
// do other stuff here
}
// -- END OF FILE --