Class Base4Relay
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
Methods
SetAllRelays(State)
Sets all relays in the desired state.
public void SetAllRelays(State state)
Parameters
state
StateThe state On or Off.
SetRelay(byte, State)
Sets the state of a specific Relay.
public void SetRelay(byte number, State state)
Parameters
Exceptions
- ArgumentException
Relay number must be between 0 and 3.