DigitalOutput Class

Definition

DigitalOutput class to control a digital output

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

Constructors

DigitalOutput(GoPiGo, GrovePort)

Create a new instance of DigitalOutput.

Properties

Port

Grove port

SensorName

Get the sensor name "Digital Output"

SupportedPorts

List the supported Grove ports for the sensor

Value

Get/set the output. 0 for low, 1 for high. Anything else than 0 will set the high state

Methods

ToString()

Get "High" when output is set to high, "Low" if set to low state

Applies to