Treehopper C# API
Tm1650 Class Reference

Titan Micro TM1650 4x8 LED driver More...

Inheritance diagram for Tm1650:
LedDriver ILedDriver IFlushable

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< LedLeds = 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...
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ Tm1650()

Tm1650 ( I2C  i2c)

Construct a new TM1650 with a given I2c interface

Parameters
i2cThe I2c interface to use

Member Function Documentation

◆ FlushAsync()

override async Task FlushAsync ( bool  force = false)
virtual

Flush data to the driver

Parameters
forceWhether or not to force all data to be flushed, even if it doesn't appear to have changed
Returns
An awaitable task that completes when finished

Implements LedDriver.

◆ Clear()

async Task Clear ( )
inherited

Clear the display

Returns
An awaitable task that completes when the display is cleared

Implements ILedDriver.

Member Data Documentation

◆ brightness

double brightness
protectedinherited

The internally-referenced global brightness of the LED driver

Property Documentation

◆ Enable

bool Enable
getset

Enable or disable the display

◆ AutoFlush

bool AutoFlush = true
getsetinherited

Gets or sets whether the display should auto-flush whenever an LED state is changed

◆ HasGlobalBrightnessControl

bool HasGlobalBrightnessControl
getprotected setinherited

Gets or sets whether this controller supports global brightness control.

◆ HasIndividualBrightnessControl

bool HasIndividualBrightnessControl
getinherited

Gets or sets whether this controller's LEDs have individual brightness control (through PWM or otherwise).

◆ Brightness

double Brightness
getsetinherited

The global brightness, from 0.0-1.0, of the LEDs attached to this driver

◆ Leds

IList<Led> Leds = new Collection<Led>()
getsetinherited

The collection of LEDs that belong to this driver.

◆ Parent

IFlushable Parent
getprotected setinherited

Gets the parent device of this LED driver


The documentation for this class was generated from the following file: