mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
gsr: Added gsr sensor C source
Added the C source for the gsr sensor with necessary changes to cmake, examples, docs. * Renamed all files with grovegsr to gsr * Replaced all instances of grovegsr with gsr * Added C source for gsr sensor * Updated all cmake files * Added C example for gsr sensor * Fixed C++ threshold method from throwing on a successfull aio read Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -171,7 +171,7 @@ add_example (grovecollision)
|
||||
add_example (groveelectromagnet)
|
||||
add_example (emg)
|
||||
add_example (o2)
|
||||
add_example (grovegsr)
|
||||
add_example (gsr)
|
||||
add_example (ina132)
|
||||
add_example (l298)
|
||||
add_example (l298-stepper)
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include <unistd.h>
|
||||
#include <iostream>
|
||||
#include <signal.h>
|
||||
#include "grovegsr.hpp"
|
||||
#include "gsr.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -42,10 +42,10 @@ int main()
|
||||
signal(SIGINT, sig_handler);
|
||||
|
||||
//! [Interesting]
|
||||
// The was tested with the GroveGSR Galvanic Skin Response Sensor module.
|
||||
// The was tested with the GSR Galvanic Skin Response Sensor module.
|
||||
|
||||
// Instantiate a GroveGSR on analog pin A0
|
||||
upm::GroveGSR *gsr = new upm::GroveGSR(0);
|
||||
// Instantiate a GSR on analog pin A0
|
||||
upm::GSR *gsr = new upm::GSR(0);
|
||||
cout << "Calibrating...." << endl;
|
||||
gsr->calibrate();
|
||||
|
Reference in New Issue
Block a user