Edit

Share via


GoPiGo.GetGroveState(GrovePort) Method

Definition

Get a grove input pin state

public byte GetGroveState (Iot.Device.GoPiGo3.Models.GrovePort port);
member this.GetGroveState : Iot.Device.GoPiGo3.Models.GrovePort -> byte
Public Function GetGroveState (port As GrovePort) As Byte

Parameters

port
GrovePort

The Grove Pin, one at the time Grove1Pin1, Grove1Pin2, Grove2Pin1 or Grove2Pin2

Returns

Returns the pin state

Applies to