Relay Constructors

Definition

Overloads

Relay(GoPiGo, GrovePort)

Creates a new instance of Relay.

Relay(GoPiGo, GrovePort, Boolean)

Creates a new instance of Relay.

Relay(GoPiGo, GrovePort)

Creates a new instance of Relay.

public Relay (Iot.Device.GoPiGo3.GoPiGo goPiGo, Iot.Device.GoPiGo3.Models.GrovePort port);
new Iot.Device.GoPiGo3.Sensors.Relay : Iot.Device.GoPiGo3.GoPiGo * Iot.Device.GoPiGo3.Models.GrovePort -> Iot.Device.GoPiGo3.Sensors.Relay
Public Sub New (goPiGo As GoPiGo, port As GrovePort)

Parameters

goPiGo
GoPiGo

The GoPiGo3 class

port
GrovePort

The Grove Port, need to be in the list of SupportedPorts

Applies to

Relay(GoPiGo, GrovePort, Boolean)

Creates a new instance of Relay.

public Relay (Iot.Device.GoPiGo3.GoPiGo goPiGo, Iot.Device.GoPiGo3.Models.GrovePort port, bool inverted);
new Iot.Device.GoPiGo3.Sensors.Relay : Iot.Device.GoPiGo3.GoPiGo * Iot.Device.GoPiGo3.Models.GrovePort * bool -> Iot.Device.GoPiGo3.Sensors.Relay
Public Sub New (goPiGo As GoPiGo, port As GrovePort, inverted As Boolean)

Parameters

goPiGo
GoPiGo

The GoPiGo3 class

port
GrovePort

The Grove Port, need to be in the list of SupportedPorts

inverted
Boolean

If inverted, the relay is on when output is low and off when output is high

Applies to