Meadow.Foundation.Displays.Pcd8544
Pcd8544 | |
---|---|
Status | |
Source code | GitHub |
Datasheet(s) | GitHub |
NuGet package |
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:
PCD8544 | Meadow Pin |
---|---|
GND | GND |
LIGHT | GND |
VCC | 3V3 |
CLK | SCK |
DIN | COPI |
DC | D00 |
CE | D01 |
RST | D02 |