Table of Contents

Class Base4Relay

Namespace
Iot.Device.Relay
Assembly
Iot.Device.Relay.dll

Base relay common to both Module and Unit 4 Relay.

public class Base4Relay
Inheritance
Base4Relay
Derived

Fields

DefaultI2cAddress

4 Relay default I2C Address.

public const byte DefaultI2cAddress = 38

Field Value

byte

Methods

SetAllRelays(State)

Sets all relays in the desired state.

public void SetAllRelays(State state)

Parameters

state State

The state On or Off.

SetRelay(byte, State)

Sets the state of a specific Relay.

public void SetRelay(byte number, State state)

Parameters

number byte

The Relay number from 0 to 3.

state State

The state On or Off.

Exceptions

ArgumentException

Relay number must be between 0 and 3.