Skip to main content

Class FourChannelSpdtRelay

Represents a Grove Four Channel Spdt Relay

Assembly: 4-ChannelSpdtRelay.dll​
View Source​
Declaration
public class FourChannelSpdtRelay : II2cPeripheral

Implements:
Meadow.Hardware.II2cPeripheral

Properties​

DefaultI2cAddress​

The default I2C address for the peripheral

View Source​
Declaration
public byte DefaultI2cAddress { get; }

Fields​

Relays​

The relays

View Source​
Declaration
public readonly Relay[] Relays

ports​

The digital output ports for the relays

View Source​
Declaration
protected readonly IDigitalOutputPort[] ports

Methods​

GetFirmwareVersion()​

Get the firmware version

View Source​
Declaration
public byte GetFirmwareVersion()
Returns​

System.Byte: The firmware version as a byte### SetI2cAddress(byte) Set a new I2C address

View Source​
Declaration
public void SetI2cAddress(byte address)
Parameters​
TypeName
System.Byteaddress

SetAllOff()​

Convenience method to turn all outputs off

View Source​
Declaration
public void SetAllOff()

SetAllOn()​

Convenience method to turn all outputs on

View Source​
Declaration
public void SetAllOn()

Implements​

  • Meadow.Hardware.II2cPeripheral