upm  0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
Public Member Functions | List of all members

API for the Grove Electromagnet. More...

Detailed Description

The Grove Electromagnet can hold up to 1 kg (approximately 2.2 lbs)

groveelectromagnet.jpg

Public Member Functions

synchronized void delete ()
 
 GroveElectromagnet (int pin)
 
void on ()
 
void off ()
 

Constructor & Destructor Documentation

GroveElectromagnet ( int  pin)

Grove Electromagnet constructor

Parameters
pinDigital pin to use

Member Function Documentation

void off ( )

Turns the magnet off

void on ( )

Turns the magnet on


The documentation for this class was generated from the following file: