|
upm
0.4.0
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 | |
| GroveElectromagnet (int pin) | |
| ~GroveElectromagnet () | |
| void | on () |
| void | off () |
| GroveElectromagnet | ( | int | pin | ) |
Grove Electromagnet constructor
| pin | Digital pin to use |
| ~GroveElectromagnet | ( | ) |
Grove Electromagnet destructor
| void on | ( | ) |
Turns the magnet on
| void off | ( | ) |
Turns the magnet off
1.8.9.1