Remarks

4-DigitDisplay
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Displays.4DigitDisplay

Code Example

FourDigitDisplay display;

public override Task Initialize()
{
    Console.WriteLine("Initializing ...");

    display = new FourDigitDisplay(
        device: Device, 
        pinClock: Device.Pins.D02,
        pinData: Device.Pins.D01) 
    { 
        Brightness = 7,
        ScreenOn = true
    };

    return Task.CompletedTask;
}

public override Task Run()
{
    display.Clear();

    var chars = new Character[] { Character.A, Character.B, Character.C, Character.D };

    display.Show(chars);

    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

FourDigitDisplay Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00
Characteristic Locus
Inheritance object Tm1637 > FourDigitDisplay
Implements IDisposable
Inherited Members Tm1637.MAX_SEGMENTS Tm1637.SegmentOrder Tm1637.ScreenOn Tm1637.Brightness Tm1637.IsDisposed Tm1637.Show(ReadOnlySpan<Character>) Tm1637.Show(byte, Character) Tm1637.Clear() Tm1637.Dispose() Tm1637.Dispose(bool) object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation.Grove.Displays
Assembly 4DigitDisplay.dll

Syntax

public class FourDigitDisplay : Tm1637, IDisposable

Constructors

FourDigitDisplay(IPin, IPin)

Creates a new FourDigitDisplay driver

Declaration
public FourDigitDisplay(IPin pinClock, IPin pinData)

Parameters

Type Name Description
IPin pinClock
IPin pinData

Remarks

4-DigitDisplay
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Displays.4DigitDisplay

Code Example

FourDigitDisplay display;

public override Task Initialize()
{
    Console.WriteLine("Initializing ...");

    display = new FourDigitDisplay(
        device: Device, 
        pinClock: Device.Pins.D02,
        pinData: Device.Pins.D01) 
    { 
        Brightness = 7,
        ScreenOn = true
    };

    return Task.CompletedTask;
}

public override Task Run()
{
    display.Clear();

    var chars = new Character[] { Character.A, Character.B, Character.C, Character.D };

    display.Show(chars);

    return Task.CompletedTask;
}

Sample project(s) available on GitHub

Wiring Example

FourDigitDisplay Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00