Meadow.Foundation.Grove.Displays.4-DigitDisplay
4-DigitDisplay | |
---|---|
Status | |
Source code | GitHub |
NuGet package |
Code Example
FourDigitDisplay display;
public override Task Initialize()
{
Resolver.Log.Info("Initializing ...");
display = new FourDigitDisplay(
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;
}