Remarks

LedMatrix8x16Wing
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for LedMatrix8x16Wing

Code Example

LedMatrix8x16Wing ledMatrixWing;
MicroGraphics graphics;

public MeadowApp()
{
    Console.WriteLine("Initializing ..");

    ledMatrixWing = new LedMatrix8x16Wing(Device.CreateI2cBus());
    ledMatrixWing.Clear();

    graphics = new MicroGraphics(ledMatrixWing);
    graphics.CurrentFont = new Font4x8();

    graphics.Rotation = RotationType._90Degrees;
    graphics.Clear();
    graphics.DrawText(0, 0, "M F7");
    graphics.Show();
}

Sample project(s) available on GitHub

Characteristic Locus
Inheritance System.Object > LedMatrix8x16Wing
Namespace Meadow.Foundation.FeatherWings
Assembly LedMatrix8x16Wing.dll

Syntax

public class LedMatrix8x16Wing : IGraphicsDriver

Constructors

LedMatrix8x16Wing(II2cBus, Byte)

Declaration
public LedMatrix8x16Wing(II2cBus i2cBus, byte address = null)

Parameters

Type Name Description
II2cBus i2cBus
System.Byte address

Properties

ColorMode

Declaration
public ColorType ColorMode { get; }

Property Value

Type Description
ColorType

Height

Declaration
public int Height { get; }

Property Value

Type Description
System.Int32

IgnoreOutOfBoundsPixels

Declaration
public bool IgnoreOutOfBoundsPixels { get; set; }

Property Value

Type Description
System.Boolean

PixelBuffer

This device does not use a pixel buffer, it's methods directly light up LEDs on the device.

Declaration
public IPixelBuffer PixelBuffer { get; }

Property Value

Type Description
IPixelBuffer

Width

Declaration
public int Width { get; }

Property Value

Type Description
System.Int32

Methods

Clear(Boolean)

Declaration
public void Clear(bool updateDisplay = false)

Parameters

Type Name Description
System.Boolean updateDisplay

DrawBuffer(Int32, Int32, IPixelBuffer)

Declaration
public void DrawBuffer(int x, int y, IPixelBuffer displayBuffer)

Parameters

Type Name Description
System.Int32 x
System.Int32 y
IPixelBuffer displayBuffer

DrawPixel(Int32, Int32, Color)

Declaration
public void DrawPixel(int x, int y, Color color)

Parameters

Type Name Description
System.Int32 x
System.Int32 y
Color color

DrawPixel(Int32, Int32, Boolean)

Declaration
public void DrawPixel(int x, int y, bool colored)

Parameters

Type Name Description
System.Int32 x
System.Int32 y
System.Boolean colored

Fill(Color, Boolean)

Declaration
public void Fill(Color fillColor, bool updateDisplay = false)

Parameters

Type Name Description
Color fillColor
System.Boolean updateDisplay

Fill(Int32, Int32, Int32, Int32, Color)

Declaration
public void Fill(int x, int y, int width, int height, Color fillColor)

Parameters

Type Name Description
System.Int32 x
System.Int32 y
System.Int32 width
System.Int32 height
Color fillColor

InvertPixel(Int32, Int32)

Declaration
public void InvertPixel(int x, int y)

Parameters

Type Name Description
System.Int32 x
System.Int32 y

Show()

Declaration
public void Show()

Show(Int32, Int32, Int32, Int32)

Declaration
public void Show(int left, int top, int right, int bottom)

Parameters

Type Name Description
System.Int32 left
System.Int32 top
System.Int32 right
System.Int32 bottom