GY-63_MS5611/libraries/HeartBeat/examples/arrayHeartBeat/arrayHeartBeat.ino
2021-01-29 12:31:58 +01:00

33 lines
435 B
C++

//
// FILE: arrayHeartBeat.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo
#include "HeartBeat.h"
HeartBeat HB[3];
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.println(HEARTBEAT_LIB_VERSION);
HB[0].begin(11, 1);
HB[1].begin(12, 3);
HB[2].begin(13, 5);
}
void loop()
{
// update all heartbeats
for (int i = 0; i < 3; i++) HB[i].beat();
// do other stuff here
}
// -- END OF FILE --