Skip to main content

Meadow.Foundation.Displays.Pcd8544

Pcd8544
StatusStatus badge: working
Source codeGitHub
Datasheet(s)GitHub
NuGet packageNuGet Gallery for Meadow.Foundation.Displays.Pcd8544

The PCD8544 display, also known as a Nokia 5110 LCD, is a single color 84x84 LCD display. Data is sent to the display via SPI. The also typically also include an LED backlight controlled via a single pin.

These displays have excellent visibility in daylight, even without the backlight, making them a good choice for builds with low-power restrictions and require visibility is bright light or daylight.

Code Example

MicroGraphics graphics;

public override Task Initialize()
{
Resolver.Log.Info("Initializing...");

var display = new Pcd8544
(
spiBus: Device.CreateSpiBus(),
chipSelectPin: Device.Pins.D01,
dcPin: Device.Pins.D00,
resetPin: Device.Pins.D02
);

graphics = new MicroGraphics(display);

return base.Initialize();
}

public override Task Run()
{
graphics.Clear(true);
graphics.CurrentFont = new Font8x12();
graphics.DrawText(0, 0, "PCD8544");
graphics.DrawRectangle(5, 14, 30, 10, true);

graphics.Show();

return base.Run();
}

Sample project(s) available on GitHub

Wiring Example

To wire a PCD8544 to your Meadow board, connect the following:

PCD8544Meadow Pin
GNDGND
LIGHTGND
VCC3V3
CLKSCK
DINCOPI
DCD00
CED01
RSTD02

SevenSegment displays