HA4IoT.Hardware.CCTools.HSREL5.HSREL5 C# (CSharp) Method

HSREL5() public method

public HSREL5 ( DeviceId id, I2CSlaveAddress i2CAddress, II2CBusService bus ) : System
id DeviceId
i2CAddress HA4IoT.Contracts.Hardware.I2CSlaveAddress
bus II2CBusService
return System
        public HSREL5(DeviceId id, I2CSlaveAddress i2CAddress, II2CBusService bus)
            : base(id, new PCF8574Driver(i2CAddress, bus))
        {
            // Ensure that all relays are off by default. The first 5 ports are hardware inverted! The other ports are not inverted but the
            // connected relays are inverted.
            SetState(new byte[] { 0xFF });
            CommitChanges(true);
        }