DigitalInput Class

Definition

DigitalInput is a generic calss for digital input

C#
public class DigitalInput
Inheritance
DigitalInput
Derived

Constructors

DigitalInput(GrovePi, GrovePort)

DigitalInput constructor

Properties

Port

grove sensor port

SensorName

Get the name Digital Input

SupportedPorts

Only Digital ports including the analog sensors (A0 = D14, A1 = D15, A2 = D16)

Value

Get the pin level, either high either low

Methods

ToString()

Returns the value as a string

Applies to

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