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;
}
}

View File

@ -33,7 +33,7 @@ add_example(ES08ASample servo)
add_example(GroveButtonSample grove)
add_example(GroveButton_intrSample grove)
add_example(Collision collision)
add_example(GroveEHRSample groveehr)
add_example(EHRSample ehr)
add_example(Emg emg)
add_example(Gsr gsr)
add_example(GroveLed_multiSample grove)

View File

@ -23,12 +23,12 @@
*/
//NOT TESTED!!!
public class GroveEHRSample {
public class EHRSample {
public static void main(String[] args) throws InterruptedException {
// ! [Interesting]
// Instantiate a Grove Ear-clip Heart Rate sensor on digital pin D2
upm_groveehr.GroveEHR heart = new upm_groveehr.GroveEHR(2);
// Instantiate a Ear-clip Heart Rate sensor on digital pin D2
upm_ehr.EHR heart = new upm_ehr.EHR(2);
// set the beat counter to 0, init the clock and start counting beats
heart.clearBeatCounter();

View File

@ -23,9 +23,9 @@
*/
// Load heart rate sensor module
var heartRateSensor = require('jsupm_groveehr');
// Instantiate a Grove Ear-clip Heart Rate sensor on digital pin D2
var myHeartRateSensor = new heartRateSensor.GroveEHR(2);
var heartRateSensor = require('jsupm_ehr');
// Instantiate a Ear-clip Heart Rate sensor on digital pin D2
var myHeartRateSensor = new heartRateSensor.EHR(2);
// set the beat counter to 0, init the clock and start counting beats
myHeartRateSensor.clearBeatCounter();

View File

@ -23,10 +23,10 @@
import time, sys, signal, atexit
import pyupm_groveehr as upmGroveehr
import pyupm_ehr as upmehr
# Instantiate a Grove Ear-clip Heart Rate sensor on digital pin D2
myHeartRateSensor = upmGroveehr.GroveEHR(2)
# Instantiate a Ear-clip Heart Rate sensor on digital pin D2
myHeartRateSensor = upmehr.EHR(2)
## Exit handlers ##