Button(GrovePi, GrovePort) Constructor
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Button constructor
C#
public Button (Iot.Device.GrovePiDevice.GrovePi grovePi, Iot.Device.GrovePiDevice.Models.GrovePort port);
new Iot.Device.GrovePiDevice.Sensors.Button : Iot.Device.GrovePiDevice.GrovePi * Iot.Device.GrovePiDevice.Models.GrovePort -> Iot.Device.GrovePiDevice.Sensors.Button
Public Sub New (grovePi As GrovePi, port As GrovePort)
- grovePi
- GrovePi
The GrovePi class
- port
- GrovePort
The grove Port, need to be in the list of SupportedPorts
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 |