mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
emg: Added emg sensor C source
Added the C source for the emg sensor with necessary changes to cmake, examples, docs. * Renamed all files with groveemg to emg * Replaced all instances of groveemg with emg * Added C source for emg sensor * Updated all cmake files * Added C example for emg sensor Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -169,7 +169,7 @@ add_example (nunchuck)
|
||||
add_example (otp538u)
|
||||
add_example (grovecollision)
|
||||
add_example (groveelectromagnet)
|
||||
add_example (groveemg)
|
||||
add_example (emg)
|
||||
add_example (o2)
|
||||
add_example (grovegsr)
|
||||
add_example (ina132)
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <unistd.h>
|
||||
#include <iostream>
|
||||
#include <signal.h>
|
||||
#include "groveemg.hpp"
|
||||
#include "emg.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -41,9 +41,9 @@ int main(int argc, char **argv)
|
||||
signal(SIGINT, sig_handler);
|
||||
|
||||
//! [Interesting]
|
||||
// The was tested with the GroveEMG Muscle Signal Reader Sensor Module
|
||||
// Instantiate a GroveEMG on analog pin A0
|
||||
upm::GroveEMG *emg = new upm::GroveEMG(0);
|
||||
// The was tested with the EMG Muscle Signal Reader Sensor Module
|
||||
// Instantiate a EMG on analog pin A0
|
||||
upm::EMG *emg = new upm::EMG(0);
|
||||
cout << "Calibrating...." << endl;
|
||||
emg->calibrate();
|
||||
|
Reference in New Issue
Block a user