| upm
    1.5.0
    Sensor/Actuator repository for libmraa (v1.8.0) | 
API for the Electromagnet. More...
The Electromagnet can hold up to 1 kg (approximately 2.2 lbs)
 
| Public Member Functions | |
| Electromagnet (int pin) | |
| ~Electromagnet () | |
| void | on () | 
| void | off () | 
| Electromagnet | ( | int | pin | ) | 
Electromagnet constructor
| pin | Digital pin to use | 
| ~Electromagnet | ( | ) | 
Electromagnet destructor
| void on | ( | ) | 
Turns the magnet on
| void off | ( | ) | 
Turns the magnet off
 1.8.11
 1.8.11