|
| | LedShiftRegister (Spi SpiModule, SpiChipSelectPin LatchPin, LedChannelCount ChannelCount=LedChannelCount.SixteenChannel, DigitalOut OutputEnablePin=null, double speedMhz=6) |
| | Construct an LED shift register attached directly to a board SPI module More...
|
| |
| | LedShiftRegister (Spi SpiModule, SpiChipSelectPin LatchPin, Pwm OutputEnablePin, LedChannelCount ChannelCount=LedChannelCount.SixteenChannel, double speedMhz=6) |
| | Construct an LED shift register attached directly to a board SPI module More...
|
| |
| | LedShiftRegister (ChainableShiftRegisterOutput upstreamDevice, LedChannelCount ChannelCount=LedChannelCount.SixteenChannel, DigitalOut OutputEnablePin=null) |
| | Construct an LED shift register attached to the output of another shift register More...
|
| |
| | LedShiftRegister (ChainableShiftRegisterOutput upstreamDevice, Pwm OutputEnablePin, LedChannelCount ChannelCount=LedChannelCount.SixteenChannel) |
| | Construct an LED shift register attached to the output of another shift register More...
|
| |
| Task | Clear () |
| | Clear the display More...
|
| |
| async Task | FlushAsync (bool force=false) |
| | Flush data to the port More...
|
| |
| async Task | Write (byte[] value) |
| | Immediately update all the pins at once with the given value. More...
|
| |
Supports generic 8-bit or 16-bit LED shift register drivers, such as the STP16CPC26, CAT4016, TLC5916, etc
This driver provides support for many common 8-channel and 16-channel LED drivers that have an active-low Output Enable (OE) pin that supports global brightness control through PWMing. The following ICs are examples of drivers that are compatible with this library:
-
Texas Instruments TLC591x8-channel, up to 120 mA, 20V
-
Texas Instruments TLC592816-channel, up to 35 mA, 17V
-
Texas Instruments TLC5928x16-channel, up to 45 mA, 10V
-
Silicon Touch (SiTI) ST2221A8-channel, up to 90 mA, 9V
-
Silicon Touch (SiTI) ST2221C16-channel, up to 90 mA, 9V
-
Macroblock MBI502x16-channel, up to 90 mA, 17V
-
Allegro A628216-channel, up to 50 mA, 12V
-
ON Semiconductor CAT401616-channel, up to 100 mA, 5.5V
-
ST STP16C59616-channel, up to 120 mA, 16V
-
ST STP16CP0516-channel, up to 100 mA, 20V
-
ST STP16CPC2616-channel, up to 90 mA, 20V
-
ISSI IS31FL372616-channel, up to 60 mA, 4V
-
AMS AS112316-channel, up to 40 mA, 5.5V
Note that any other 8-bit or 16-bit shift register can also be used with this library if you want an Led-based interface to the shift register. For example, the low-cost (and ubiquitous) 74HC595 is perfectly capable of driving small indicator LEDs, and the TPIC6B595 could be used with this library to drive high-voltage, high-power LEDs (or nixie tubes, etc).
This library supports three different ways of working with the OE (output enable) pin:
-
Unmanaged The library doesn't do anything with the OE pin. You can tie it to GND in your circuit, or control it outside the context of this library by yourself.
-
GPIO pin If you pass a GPIO pin to the constructor, the library will be able to globally enable/disable the display through the Brightness property. Setting a brightness of 0.5 or greater will turn on the display, otherwise, the display will be off.
-
PWM pin If you pass a PWM pin to the constructor, the library will be able to control the global brightness of the display. Note that CIE perceptual brightness conversion will be performed, so, i.e., setting Brightness to 0.5 will produce a result that appears half as bright as a Brightness of 1.0.