Button Class
Definition
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
public class Button : Iot.Device.GrovePiDevice.Sensors.DigitalInput
type Button = class
inherit DigitalInput
Public Class Button
Inherits DigitalInput
- Inheritance
Constructors
Button(GrovePi, GrovePort) |
Button constructor |
Properties
Port |
grove sensor port (Inherited from DigitalInput) |
SensorName |
Get the name Button |
Value |
Get the pin level, either high either low (Inherited from DigitalInput) |
Methods
ToString() |
Returns "Pressed" then button is pressed, "Not pressed" otherwise |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for