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
System.Single

Methods

Clear(Boolean)

Clear all leds in the offscreen buffer

Declaration
void Clear(bool update = false)

Parameters

Type Name Description
System.Boolean update

If true, update the led state

SetLed(Int32, Color)

Set the color of an led

Declaration
void SetLed(int index, Color color)

Parameters

Type Name Description
System.Int32 index

Led index

Color color

Led color

SetLed(Int32, Color, Single)

Set the color of an led

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

Parameters

Type Name Description
System.Int32 index

Led index

Color color

Led color

System.Single brightness

Led brightnes (0-1)

SetLed(Int32, Byte[])

Set the color of an led

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

Parameters

Type Name Description
System.Int32 index

Led index

System.Byte[] rgb

red, green, blue byte array

SetLed(Int32, Byte[], Single)

Set the color of an led

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

Parameters

Type Name Description
System.Int32 index

Led index

System.Byte[] rgb

red, green, blue byte array

System.Single brightness

Led brightnes (0-1)

Show()

Update from the offscreen buffer

Declaration
void Show()