EHR: Removed Grove dependency

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik
2016-09-13 11:10:13 -07:00
committed by Noel Eck
parent f9a36314fb
commit a08b8bbcb0
14 changed files with 61 additions and 61 deletions

View File

@ -143,7 +143,7 @@ add_example (ds1307)
add_example (a110x)
add_example (gp2y0a)
add_example (moisture)
add_example (groveehr)
add_example (ehr)
add_example (ta12200)
add_example (grovelinefinder)
add_example (vdiv)

View File

@ -25,7 +25,7 @@
#include <unistd.h>
#include <iostream>
#include <signal.h>
#include "groveehr.hpp"
#include "ehr.hpp"
using namespace std;
@ -43,8 +43,8 @@ int main()
signal(SIGINT, sig_handler);
//! [Interesting]
// Instantiate a Grove Ear-clip Heart Rate sensor on digital pin D2
upm::GroveEHR* heart = new upm::GroveEHR(2);
// Instantiate a Ear-clip Heart Rate sensor on digital pin D2
upm::EHR* heart = new upm::EHR(2);
// set the beat counter to 0, init the clock and start counting beats
heart->clearBeatCounter();
@ -75,4 +75,4 @@ int main()
delete heart;
return 0;
}
}