mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
EHR: Removed Grove dependency
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user