Class Ws28xx
Represents base class for WS28XX LED drivers (i.e. WS2812B or WS2808).
public class Ws28xx
- Inheritance
-
Ws28xx
- Derived
Constructors
Ws28xx(int, BitmapImage)
Initializes a new instance of the Ws28xx class.
public Ws28xx(int gpioPin, BitmapImage image)
Parameters
gpioPin
intThe GPIO pin used for communication with the LED driver.
image
BitmapImageThe bitmap that represents the screen or led strip.
Fields
GpioPin
SPI device used for communication with the LED driver.
protected readonly int GpioPin
Field Value
Properties
ClockDivider
Gets or sets the clock divider.
public byte ClockDivider { get; set; }
Property Value
Image
Gets backing image to be updated on the driver.
public BitmapImage Image { get; }
Property Value
OnePulse
Gets or sets the One pulse command.
public RmtCommand OnePulse { get; set; }
Property Value
ResetCommand
Gets or sets the reset command.
public RmtCommand ResetCommand { get; set; }
Property Value
ZeroPulse
Gets or sets the zero pulse command.
public RmtCommand ZeroPulse { get; set; }
Property Value
Methods
Update()
Sends backing image to the LED driver.
public void Update()