Table of Contents

Class MatrixGraphics

Namespace
Iot.Device.Max7219
Assembly
Iot.Device.Max7219.dll

Graphical functions for a MAX7219 device

public class MatrixGraphics
Inheritance
MatrixGraphics

Constructors

MatrixGraphics(Max7219, IFont)

Constructs MatrixGraphics instance

public MatrixGraphics(Max7219 device, IFont font)

Parameters

device Max7219

Max7219 device

font IFont

Font to use for drawing text

Properties

Font

Font used for drawing text

public IFont Font { get; set; }

Property Value

IFont

Methods

ScrollDown(bool)

Scrolls the underlying buffer (for all cascaded devices) down one pixel

public void ScrollDown(bool flush = true)

Parameters

flush bool

ScrollLeft(byte, bool)

Scrolls the underlying buffer (for all cascaded devices) to the left

public void ScrollLeft(byte value, bool flush = true)

Parameters

value byte
flush bool

ScrollRight(byte, bool)

Scrolls the underlying buffer (for all cascaded devices) to the right

public void ScrollRight(byte value, bool flush = true)

Parameters

value byte
flush bool

ScrollUp(bool)

Scrolls the underlying buffer (for all cascaded devices) up one pixel

public void ScrollUp(bool flush = true)

Parameters

flush bool

ShowMessage(string, int, bool)

Shows a message on the device. If it's longer then the total width (or == true), it transitions the text message across the devices from right-to-left.

public void ShowMessage(string text, int delayInMilliseconds = 50, bool alwaysScroll = false)

Parameters

text string
delayInMilliseconds int
alwaysScroll bool

WriteLetter(int, char, bool)

Writes a char to the given device with the specified font.

public void WriteLetter(int deviceId, char chr, bool flush = true)

Parameters

deviceId int
chr char
flush bool