Characteristic Locus
Namespace Meadow.Foundation.Leds
Assembly Apa102.dll

Syntax

public interface IApa102

Properties

Brightness

LED brightness

Declaration
float Brightness { get; set; }

Property Value

Type Description
float

Methods

Clear(bool)

Clear all leds in the off-screen buffer

Declaration
void Clear(bool update = false)

Parameters

Type Name Description
bool update

If true, update the led state

SetLed(int, Color)

Set the color of an led

Declaration
void SetLed(int index, Color color)

Parameters

Type Name Description
int index

Led index

Color color

Led color

SetLed(int, Color, float)

Set the color of an led

Declaration
void SetLed(int index, Color color, float brightness = 1)

Parameters

Type Name Description
int index

Led index

Color color

Led color

float brightness

Led brightness (0-1)

SetLed(int, byte[])

Set the color of an led

Declaration
void SetLed(int index, byte[] rgb)

Parameters

Type Name Description
int index

Led index

byte[] rgb

red, green, blue byte array

SetLed(int, byte[], float)

Set the color of an led

Declaration
void SetLed(int index, byte[] rgb, float brightness = 1)

Parameters

Type Name Description
int index

Led index

byte[] rgb

red, green, blue byte array

float brightness

Led brightness (0-1)

Show()

Update from the off-screen buffer

Declaration
void Show()