pyupm_groveelectromagnet module

class pyupm_groveelectromagnet.GroveElectromagnet(pin)[source]

Bases: object

API for the Grove Electromagnet.

Deprecated This class is being replaced by Electromagnet

ID: groveelectromagnet

Name: Electromagnet

Category: electric

Manufacturer: seeed

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

C++ includes: groveelectromagnet.hpp

off()[source]

void off()

Turns the magnet off

on()[source]

void on()

Turns the magnet on