Remarks

C8x8
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.mikroBUS.Displays.C8x8

Code Example

C8x8 c8x8;

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

    c8x8 = new C8x8(Device.CreateSpiBus(), Device.Pins.D14);

    var graphics = new MicroGraphics(c8x8)
    {
        IgnoreOutOfBoundsPixels = true,
        Rotation = RotationType._270Degrees
    };
    graphics.CurrentFont = new Font4x8();

    var message = "Wilderness Labs Meadow F7 Feather";

    while (true)
    {
        for (int x = 0; x < message.Length * 4; x++)
        {
            graphics.Clear();
            graphics.DrawText(0 - x, 1, message);
            graphics.Show();
        }
    }
}

Sample project(s) available on GitHub

Characteristic Locus
Inheritance object Max7219 > C8x8
Implements ISpiPeripheral IDisposable IGraphicsDisplay IPixelBuffer
Inherited Members Max7219.DigitsPerDevice Max7219.DeviceCount Max7219.DigitRows Max7219.DigitColumns Max7219.Length Max7219.DefaultSpiBusSpeed Max7219.SpiBusSpeed Max7219.DefaultSpiBusMode Max7219.SpiBusMode Max7219.IsDisposed Max7219.spiComms Max7219.SetNumber(int, int) Max7219.SetCharacter(Max7219.CharacterType, int, bool, int) Max7219.GetCharacter(int, int) Max7219.TestDisplay(TimeSpan) Max7219.SetMode(Max7219.Max7219Mode) Max7219.SetBrightness(int, int) Max7219.SetBrightness(int) Max7219.SetDigit(byte, int, int) Max7219.GetDigit(int, int) Max7219.Show() Max7219.WriteBuffer(byte[,]) Max7219.Clear(int, int) Max7219.Dispose() Max7219.Dispose(bool) Max7219.ColorMode Max7219.SupportedColorModes Max7219.Width Max7219.Height Max7219.PixelBuffer Max7219.Show(int, int, int, int) Max7219.Clear() Max7219.Clear(bool) Max7219.DrawPixel(int, int, Color) Max7219.DrawPixel(int, int, bool) Max7219.InvertPixel(int, int) Max7219.Fill(Color, bool) Max7219.Fill(int, int, int, int, Color) Max7219.WriteBuffer(int, int, IPixelBuffer) Max7219.BitDepth Max7219.ByteCount Max7219.Buffer Max7219.Fill(Color) Max7219.GetPixel(int, int) Max7219.SetPixel(int, int, Color) object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation.mikroBUS.Displays
Assembly C8x8.dll

Syntax

public class C8x8 : Max7219, ISpiPeripheral, IDisposable, IGraphicsDisplay, IPixelBuffer

Constructors

C8x8(ISpiBus, IDigitalOutputPort)

Creates a new MikroBus 8x8 object

Declaration
public C8x8(ISpiBus spiBus, IDigitalOutputPort chipselectPort)

Parameters

Type Name Description
ISpiBus spiBus

SPI bus

IDigitalOutputPort chipselectPort

Chip select port

Remarks

C8x8
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.mikroBUS.Displays.C8x8

Code Example

C8x8 c8x8;

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

    c8x8 = new C8x8(Device.CreateSpiBus(), Device.Pins.D14);

    var graphics = new MicroGraphics(c8x8)
    {
        IgnoreOutOfBoundsPixels = true,
        Rotation = RotationType._270Degrees
    };
    graphics.CurrentFont = new Font4x8();

    var message = "Wilderness Labs Meadow F7 Feather";

    while (true)
    {
        for (int x = 0; x < message.Length * 4; x++)
        {
            graphics.Clear();
            graphics.DrawText(0 - x, 1, message);
            graphics.Show();
        }
    }
}

Sample project(s) available on GitHub

C8x8(ISpiBus, IPin)

Creates a new MikroBus 8x8 object

Declaration
public C8x8(ISpiBus spiBus, IPin chipSelectPin)

Parameters

Type Name Description
ISpiBus spiBus

SPI bus

IPin chipSelectPin

Chip select pin

Remarks

C8x8
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.mikroBUS.Displays.C8x8

Code Example

C8x8 c8x8;

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

    c8x8 = new C8x8(Device.CreateSpiBus(), Device.Pins.D14);

    var graphics = new MicroGraphics(c8x8)
    {
        IgnoreOutOfBoundsPixels = true,
        Rotation = RotationType._270Degrees
    };
    graphics.CurrentFont = new Font4x8();

    var message = "Wilderness Labs Meadow F7 Feather";

    while (true)
    {
        for (int x = 0; x < message.Length * 4; x++)
        {
            graphics.Clear();
            graphics.DrawText(0 - x, 1, message);
            graphics.Show();
        }
    }
}

Sample project(s) available on GitHub