DigitalInput Class

Definition

DigitalInput class is a generic class to support digital input sensors

public class DigitalInput : Iot.Device.GoPiGo3.Sensors.ISensor
type DigitalInput = class
    interface ISensor
Public Class DigitalInput
Implements ISensor
Inheritance
DigitalInput
Derived
Implements

Constructors

DigitalInput(GoPiGo, GrovePort)

Creates an instance of DigitalInput

Properties

Port

Grove port

SensorName

Get the sensor name "Digital Input"

SupportedPorts

List the supported Grove ports for the sensor

Value

Get the state of the digital pin

Methods

ToString()

Get "High" when reading high, "Low" otherwise

Applies to