Library for the SiTI DM632, DM633, and DM634 16-channel, 16-bit PWM-capable shift-register-type LED driver.
#include <Dm632.h>
◆ Dm632() [1/2]
- Parameters
-
| [in] | spi | The SPI port this LED driver is attached to |
| [in] | lat | The GPIO pin attached to the LAT pin |
| [in] | speed | The speed, in MHz, to use when communicating |
◆ Dm632() [2/2]
- Parameters
-
| [in] | upstreamDevice | The upstream shift register this DM632 is attached to |
◆ brightness() [1/2]
◆ brightness() [2/2]
| void brightness |
( |
double |
value | ) |
|
|
inherited |
If the display's hasGlobalBrightnessControl is true, native brightness control will be used. Otherwise, if the display's hasIndividualBrightnessControl is true, global brightness will be emulated by setting all
◆ flush()
| virtual void flush |
( |
bool |
force = false | ) |
|
|
virtual |
- Parameters
-
| [in] | force | whether to flush all data to the port expander, even if it doesn't appear to have been changed |
Implements Flushable.
◆ updateFromCurrentValue()
| virtual void updateFromCurrentValue |
( |
| ) |
|
|
virtual |
◆ write()
| void write |
( |
uint8_t * |
value | ) |
|
|
inherited |
flush() will be implicity called.
- Parameters
-
| value | A value representing the data to write to the port |
- Returns
- An awaitable task that completes upon successfully writing the value.
◆ autoFlush
◆ currentValue
Note that this value is numBytes wide.
◆ hasGlobalBrightnessControl
| const bool hasGlobalBrightnessControl |
|
inherited |
◆ hasIndividualBrightnessControl
| const bool hasIndividualBrightnessControl |
|
inherited |
◆ leds
◆ numBytes
◆ parent
This property is designed to make LED displays, which operate across groups of LEDs (and possibly groups of LED drivers), much more efficient to update. Many commonly-used LED drivers are shift registers that are chained together; since these cannot be individually addressed, any write to one must include a write to all the other ones. By properly setting the parent shift register in each chain, displays can optimize these updates.
The documentation for this class was generated from the following file:
- F:/Git/treehopper-sdk/C++/API/inc/Libraries/Displays/Dm632.h