upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the Grove Electromagnet. More...
The Grove Electromagnet can hold up to 1 kg (approximately 2.2 lbs)
Public Member Functions | |
synchronized void | delete () |
GroveElectromagnet (int pin) | |
void | on () |
void | off () |
GroveElectromagnet | ( | int | pin | ) |
Grove Electromagnet constructor
pin | Digital pin to use |
void off | ( | ) |
Turns the magnet off
void on | ( | ) |
Turns the magnet on