Treehopper C# API
|
Shiji Lighting Co. More...
Classes | |
class | Led |
Represents a single APA102 LED's value More... | |
Public Member Functions | |
Apa102 (Spi spi, int numLeds, double frequency=6) | |
Construct a new chain of APA102-based smart LEDs. More... | |
async Task | FlushAsync (bool force=false) |
Flush current LED values to the SPI bus to update the LEDs. More... | |
async Task | Clear () |
Clear the display immediately, resetting all LEDs' values. More... | |
Public Attributes | |
IFlushable | Parent => null |
The parent Flushable interface. More... | |
Properties | |
IList< Led > | Leds = new List<Led>() [get] |
Gets the LEDs belonging to this APA102 instance. More... | |
double | Brightness = 1.0 [get, set] |
Gets or sets the global brightness of the LED strip More... | |
bool | AutoFlush = true [get, set] |
Whether this strip of LEDs should be updated immediately, or only when FlushAsync(bool) is called. More... | |
Shiji Lighting Co.
iPixel APA102 (DotStar) Smart RGB LED
The APA102
Construct a new chain of APA102-based smart LEDs.
spi | The SPI port to use |
numLeds | The number of APA102 smart LEDs in this chain |
frequency | The frequency to use |
async Task FlushAsync | ( | bool | force = false | ) |
Flush current LED values to the SPI bus to update the LEDs.
force | Unused for this method |
Implements IFlushable.
async Task Clear | ( | ) |
Clear the display immediately, resetting all LEDs' values.
IFlushable Parent => null |
The parent Flushable interface.
|
getset |
Gets or sets the global brightness of the LED strip
|
getset |
Whether this strip of LEDs should be updated immediately, or only when FlushAsync(bool) is called.