Skip to main content

Interface IApa102

APA102 abstraction

Assembly: Apa102.dll
View Source
Declaration
public interface IApa102

Properties

Brightness

LED brightness

View Source
Declaration
float Brightness { get; set; }

Methods

SetLed(int, Color)

Set the color of an led

View Source
Declaration
void SetLed(int index, Color color)
Parameters
TypeNameDescription
System.Int32indexLed index
Meadow.ColorcolorLed color

SetLed(int, Color, float)

Set the color of an led

View Source
Declaration
void SetLed(int index, Color color, float brightness = 1)
Parameters
TypeNameDescription
System.Int32indexLed index
Meadow.ColorcolorLed color
System.SinglebrightnessLed brightness (0-1)

SetLed(int, byte[])

Set the color of an led

View Source
Declaration
void SetLed(int index, byte[] rgb)
Parameters
TypeNameDescription
System.Int32indexLed index
System.Byte[]rgbred, green, blue byte array

SetLed(int, byte[], float)

Set the color of an led

View Source
Declaration
void SetLed(int index, byte[] rgb, float brightness = 1)
Parameters
TypeNameDescription
System.Int32indexLed index
System.Byte[]rgbred, green, blue byte array
System.SinglebrightnessLed brightness (0-1)

Clear(bool)

Clear all leds in the off-screen buffer

View Source
Declaration
void Clear(bool update = false)
Parameters
TypeNameDescription
System.BooleanupdateIf true, update the led state

Show()

Update from the off-screen buffer

View Source
Declaration
void Show()