|
Treehopper C# API
|
Titan Micro TM1650 4x8 LED driver More...
Public Member Functions | |
| Tm1650 (I2C i2c) | |
| Construct a new TM1650 with a given I2c interface More... | |
| override async Task | FlushAsync (bool force=false) |
| Flush data to the driver More... | |
| async Task | Clear () |
| Clear the display More... | |
Protected Attributes | |
| double | brightness |
| The internally-referenced global brightness of the LED driver More... | |
Properties | |
| bool | Enable [get, set] |
| Enable or disable the display More... | |
| bool | AutoFlush = true [get, set] |
| Gets or sets whether the display should auto-flush whenever an LED state is changed More... | |
| bool | HasGlobalBrightnessControl [get, protected set] |
| Gets or sets whether this controller supports global brightness control. More... | |
| bool | HasIndividualBrightnessControl [get] |
| Gets or sets whether this controller's LEDs have individual brightness control (through PWM or otherwise). More... | |
| double | Brightness [get, set] |
| The global brightness, from 0.0-1.0, of the LEDs attached to this driver More... | |
| IList< Led > | Leds = new Collection<Led>() [get, set] |
| The collection of LEDs that belong to this driver. More... | |
| IFlushable | Parent [get, protected set] |
| Gets the parent device of this LED driver More... | |
Titan Micro TM1650 4x8 LED driver
Instead of using standard SMBus-style register/value pairs, this IC's individual registers are all accessed directly from different I2C addresses. Consequently, be aware that this IC uses quite a few I2C addresses — 0x24, 0x25, 0x26, 0x27 (for control), and 0x34, 0x35, 0x36, and 0x37 (for display).
Construct a new TM1650 with a given I2c interface
| i2c | The I2c interface to use |
|
virtual |
Flush data to the driver
| force | Whether or not to force all data to be flushed, even if it doesn't appear to have changed |
Implements LedDriver.
|
inherited |
Clear the display
Implements ILedDriver.
|
protectedinherited |
The internally-referenced global brightness of the LED driver
|
getset |
Enable or disable the display
|
getsetinherited |
Gets or sets whether the display should auto-flush whenever an LED state is changed
|
getprotected setinherited |
Gets or sets whether this controller supports global brightness control.
|
getinherited |
Gets or sets whether this controller's LEDs have individual brightness control (through PWM or otherwise).
|
getsetinherited |
The global brightness, from 0.0-1.0, of the LEDs attached to this driver
The collection of LEDs that belong to this driver.
|
getprotected setinherited |
Gets the parent device of this LED driver