/// <summary> /// Construct an LED shift register attached to the output of another shift register /// </summary> /// <param name="upstreamDevice">The upstream device this shift register is attached to</param> /// <param name="OutputEnablePin">The PWM pin to use, if any, to control the display brightness</param> /// <param name="ChannelCount">The number of channels this LED shift register has</param> public LedShiftRegister(ChainableShiftRegisterOutput upstreamDevice, Pwm OutputEnablePin, LedChannelCount ChannelCount = LedChannelCount.SixteenChannel) : base(upstreamDevice, (int)ChannelCount / 8) { oePwm = OutputEnablePin; Start(ChannelCount); }
/// <summary> /// Construct an LED shift register attached to the output of another shift register /// </summary> /// <param name="upstreamDevice">The upstream device this shift register is attached to</param> /// <param name="OutputEnablePin">The digital pin to use, if any, to control the display state</param> /// <param name="ChannelCount">The number of channels this LED shift register has</param> public LedShiftRegister(ChainableShiftRegisterOutput upstreamDevice, LedChannelCount ChannelCount = LedChannelCount.SixteenChannel, DigitalOut OutputEnablePin = null) : base( upstreamDevice, (int)ChannelCount / 8) { oe = OutputEnablePin; Start(ChannelCount); }
/// <summary> /// Construct an STP16CPC26 attached to the output of another shift register /// </summary> /// <param name="upstreamDevice">The upstream device this shift register is attached to</param> /// <param name="OutputEnablePin">The PWM pin to use, if any, to control the display brightness</param> public Stp16cpc26(ChainableShiftRegisterOutput upstreamDevice, Pwm OutputEnablePin) : base(upstreamDevice, 2) { this.oePwm = OutputEnablePin; Start(); }
/// <summary> /// Construct a DM632 16-channel, 16-bit PWM LED controller attached to the output of another shift register /// </summary> /// <param name="upstreamDevice">The shift register this DM632 is attached to</param> public Dm632(ChainableShiftRegisterOutput upstreamDevice) : base(upstreamDevice, 32) { start(); }
/// <summary> /// Construct an STP16CPC26 attached to the output of another shift register /// </summary> /// <param name="upstreamDevice">The upstream device this shift register is attached to</param> /// <param name="OutputEnablePin">The digital pin to use, if any, to control the display state</param> public Stp16cpc26(ChainableShiftRegisterOutput upstreamDevice, DigitalOutPin OutputEnablePin = null) : base(upstreamDevice, 2) { oe = OutputEnablePin; Start(); }