grove.grove_gpio

Classes

class grove.grove_gpio.GroveGpio(pin)[source]

Class for Grove - Relay

Parameters:

pin (int) – number of digital pin the relay connected.

Inheritance

digraph inheritance080301961c { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "GPIO" [URL="grove.gpio.gpio_rpi.html#grove.gpio.gpio_rpi.GPIO",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "GroveGpio" [URL="#grove.grove_gpio.GroveGpio",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class for Grove - Relay"]; "GPIO" -> "GroveGpio" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
off()[source]

disable/off the relay

on()[source]

enable/on the relay