Electromagnet: Remove Grove Dependency

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik
2016-09-13 11:58:56 -07:00
committed by Noel Eck
parent 84f402abd9
commit f4315db035
12 changed files with 52 additions and 52 deletions

View File

@ -168,7 +168,7 @@ add_example (hmtrp)
add_example (nunchuck)
add_example (otp538u)
add_example (collision)
add_example (groveelectromagnet)
add_example (electromagnet)
add_example (emg)
add_example (o2)
add_example (gsr)

View File

@ -24,7 +24,7 @@
#include <iostream>
#include <time.h>
#include <signal.h>
#include "groveelectromagnet.hpp"
#include "electromagnet.hpp"
using namespace std;
@ -46,9 +46,9 @@ int main(int argc, char **argv)
signal(SIGINT, sig_handler);
//! [Interesting]
// The was tested with the Grove Electromagnetic Module
// Instantiate a Grove Electromagnet on digital pin D2
upm::GroveElectromagnet* magnet = new upm::GroveElectromagnet(2);
// The was tested with the Electromagnetic Module
// Instantiate a Electromagnet on digital pin D2
upm::Electromagnet* magnet = new upm::Electromagnet(2);
cout << "Starting up magnet...." << endl;
magnet->off();