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.
A Button class
public class Button : Iot.Device.GoPiGo3.Sensors.DigitalInput
type Button = class
inherit DigitalInput
Public Class Button
Inherits DigitalInput
- Inheritance
Constructors
Button(GoPiGo, GrovePort) |
Button constructor |
Properties
IsPressed |
True if the button is pressed, flase otherwise |
Port |
Grove port (Inherited from DigitalInput) |
SensorName |
Get the sensor name "Button" |
Value |
Get the state of the digital pin (Inherited from DigitalInput) |
Methods
ToString() |
Get "Pressed" if the button is pressed "Not pressed" if not |
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