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