Remarks

LedMatrix8x16Wing
Status
Source code GitHub
NuGet package

Code Example

public class MeadowApp : App<F7Micro, MeadowApp>
{
    LedMatrix8x16Wing ledMatrixWing;
    GraphicsLibrary graphics;

    public MeadowApp()
    {
        Initialize();

        PixelWalk();

        FourCorners();

        Thread.Sleep(2000);

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

    void Initialize()
    {
        Console.WriteLine("Initialize hardware...");

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

        graphics = new GraphicsLibrary(ledMatrixWing);
        graphics.CurrentFont = new Font4x8();
    }

    void PixelWalk()
    {
        for (byte j = 0; j < 16; j++)
        {
            for (byte i = 0; i < 8; i++)
            {
                ledMatrixWing.Clear();
                ledMatrixWing.DrawPixel(i, j);
                ledMatrixWing.Show();
                Thread.Sleep(50);
            }
        }
    }

    void FourCorners()
    {
        ledMatrixWing.Clear();
        ledMatrixWing.DrawPixel(0, 0);
        ledMatrixWing.DrawPixel(7, 0);
        ledMatrixWing.DrawPixel(0, 7);
        ledMatrixWing.DrawPixel(7, 7);
        ledMatrixWing.Show();
    }
}
Characteristic Locus
Inheritance System.Object > LedMatrix8x16Wing
Namespace Meadow.Foundation.FeatherWings
Assembly LedMatrix8x16Wing.dll

Syntax

public class LedMatrix8x16Wing : DisplayBase

Constructors

LedMatrix8x16Wing(II2cBus, Byte)

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

Parameters

Type Name Description
II2cBus i2cBus
System.Byte address

Properties

ColorMode

Declaration
public override DisplayColorMode ColorMode { get; }

Property Value

Type Description
DisplayColorMode

Height

Declaration
public override uint Height { get; }

Property Value

Type Description
System.UInt32

Width

Declaration
public override uint Width { get; }

Property Value

Type Description
System.UInt32

Methods

Clear(Boolean)

Declaration
public override void Clear(bool updateDisplay = false)

Parameters

Type Name Description
System.Boolean updateDisplay

DrawPixel(Int32, Int32)

Declaration
public override void DrawPixel(int x, int y)

Parameters

Type Name Description
System.Int32 x
System.Int32 y

DrawPixel(Int32, Int32, Color)

Declaration
public override 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 override void DrawPixel(int x, int y, bool colored)

Parameters

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

SetPenColor(Color)

Declaration
public override void SetPenColor(Color pen)

Parameters

Type Name Description
Color pen

Show()

Declaration
public override void Show()