Table of Contents

Class Ws28xx

Namespace
Iot.Device.Ws28xx.Esp32
Assembly
Iot.Device.Ws28xx.Esp32.dll

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 int

The GPIO pin used for communication with the LED driver.

image BitmapImage

The 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

int

Properties

ClockDivider

Gets or sets the clock divider.

public byte ClockDivider { get; set; }

Property Value

byte

Image

Gets backing image to be updated on the driver.

public BitmapImage Image { get; }

Property Value

BitmapImage

OnePulse

Gets or sets the One pulse command.

public RmtCommand OnePulse { get; set; }

Property Value

RmtCommand

ResetCommand

Gets or sets the reset command.

public RmtCommand ResetCommand { get; set; }

Property Value

RmtCommand

ZeroPulse

Gets or sets the zero pulse command.

public RmtCommand ZeroPulse { get; set; }

Property Value

RmtCommand

Methods

Update()

Sends backing image to the LED driver.

public void Update()