Led Class

Definition

LedNormal class to control a normal led on a digital output

public class Led : Iot.Device.GoPiGo3.Sensors.Relay
type Led = class
    inherit Relay
Public Class Led
Inherits Relay
Inheritance

Constructors

Led(GoPiGo, GrovePort)

Constructor of the normal Led class

Led(GoPiGo, GrovePort, Boolean)

Constructor of the normal Led class

Properties

IsInverted

If inverted, the relay is on when output is low and off when output is high

(Inherited from Relay)
Port

Grove port

(Inherited from DigitalOutput)
SensorName

Get the sensor name "Led"

Value

Get/set the state of the relay, 0 for off, 1 for on. Wehn set, anything not 0 will be considered as on

(Inherited from Relay)

Methods

Off()

Switch off the relay

(Inherited from Relay)
On()

Switch on the relay

(Inherited from Relay)
ToString()

Get "On" when relay if on and "Off" when relay is off

(Inherited from Relay)

Applies to