Treehopper C# API
LedCollection Class Reference

Manages efficient updates of a collection of LEDs that may be attached to multiple drivers. More...

Inheritance diagram for LedCollection:

Public Member Functions

 LedCollection (IList< Led > Leds)
 Construct a new LED collection from the provided list of LEDs More...
 
async Task Flush (bool force=false)
 Flush the values of the LEDs to the driver(s) the LEDs are attached to More...
 

Properties

List< IFlushableDrivers = new List<IFlushable>() [get]
 The drivers that belong to this LED collection More...
 

Detailed Description

Manages efficient updates of a collection of LEDs that may be attached to multiple drivers.

Constructor & Destructor Documentation

◆ LedCollection()

LedCollection ( IList< Led Leds)

Construct a new LED collection from the provided list of LEDs

Parameters
LedsThe LEDs to build the collection on

Member Function Documentation

◆ Flush()

async Task Flush ( bool  force = false)

Flush the values of the LEDs to the driver(s) the LEDs are attached to

Parameters
forceWhether to force an update
Returns

Property Documentation

◆ Drivers

List<IFlushable> Drivers = new List<IFlushable>()
get

The drivers that belong to this LED collection


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