Edit

Share via


SenseHatLedMatrix Class

Definition

Base class for SenseHAT LED matrix

public abstract class SenseHatLedMatrix : IDisposable
type SenseHatLedMatrix = class
    interface IDisposable
Public MustInherit Class SenseHatLedMatrix
Implements IDisposable
Inheritance
SenseHatLedMatrix
Derived
Implements

Constructors

SenseHatLedMatrix()

Constructs SenseHatLedMatrix instance

Fields

NumberOfPixels

Total number of pixels

NumberOfPixelsPerColumn

Number of pixels per column

NumberOfPixelsPerRow

Number of pixels per row

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Fill(Color)

Fill LED matrix with a specific color

IndexToPosition(Int32)

Translates position in the buffer to X, Y coordinates

PositionToIndex(Int32, Int32)

Translate X and Y coordinates to position in the buffer

SetPixel(Int32, Int32, Color)

Sets color on specific position of the LED matrix

Write(ReadOnlySpan<Color>)

Write colors to the device

Applies to