Button Class
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 is a generic digital button class
C#
public class Button : Iot.Device.GrovePiDevice.Sensors.DigitalInput
type Button = class
inherit DigitalInput
Public Class Button
Inherits DigitalInput
- Inheritance
Button(Grove |
Button constructor |
Port |
grove sensor port (Inherited from DigitalInput) |
Sensor |
Get the name Button |
Value |
Get the pin level, either high either low (Inherited from DigitalInput) |
To |
Returns "Pressed" then button is pressed, "Not pressed" otherwise |
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 |