Remarks

CharlieWing
Status Status badge: working
Source code GitHub
Datasheet(s) GitHub
NuGet package NuGet Gallery for CharlieWing

Code Example

CharlieWing charlieWing;
MicroGraphics graphics;

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

    charlieWing = new CharlieWing(Device.CreateI2cBus());
    charlieWing.Clear();

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

    graphics.DrawText(0, 0, "F7");
    graphics.Show();
}

Sample project(s) available on GitHub

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

Syntax

public class CharlieWing : IGraphicsDriver

Constructors

CharlieWing(II2cBus, Byte)

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

Parameters

Type Name Description
II2cBus i2cBus
System.Byte address

Fields

iS31FL3731

Declaration
protected readonly Is31fl3731 iS31FL3731

Field Value

Type Description
Is31fl3731

Properties

ColorMode

Color mode of display

Declaration
public ColorType ColorMode { get; }

Property Value

Type Description
ColorType

Frame

Declaration
public byte Frame { get; set; }

Property Value

Type Description
System.Byte

Height

Height of display in pixels

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

Width of display in pixels

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

DrawPixel(Int32, Int32, Byte)

Declaration
public virtual void DrawPixel(int x, int y, byte brightness)

Parameters

Type Name Description
System.Int32 x
System.Int32 y
System.Byte brightness

Fill(Color, Boolean)

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

Parameters

Type Name Description
Color clearColor
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(Byte)

Declaration
public virtual void Show(byte frame)

Parameters

Type Name Description
System.Byte frame

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