Button(GrovePi, GrovePort) Constructor

Definition

Button constructor

C#
public Button (Iot.Device.GrovePiDevice.GrovePi grovePi, Iot.Device.GrovePiDevice.Models.GrovePort port);

Parameters

grovePi
GrovePi

The GrovePi class

port
GrovePort

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

Applies to

Product Versions
.NET IoT Libraries 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0