Button Class

Definition

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