These displays were used in old Nokia 5110 cell phones. It is a 84×48 pixel monochrome LCD display and you can use it for graphics, text or bitmaps. To use the display, you will require 5 digital output pins. Another pin can be used to control the backlight.
The display driver is a PCD8544 chip (which is another name for the display), and you can safely run the display off 3.3v
Here is the connections I used
Connection
LCD pin | Espruino Pico | |
---|---|---|
GND | GND | |
LIGHT | N/C | |
VCC | 3.3v | |
SCLK | B3 | |
DN(MOSI) | B5 | |
D/C | B13 | |
CE | B14 | |
RST | B15 |
Schematic
here is a schematic
Code
[codesyntax lang=”javascript”]
SPI1.setup({ sck:B3, mosi:B5 }); var g = require("PCD8544").connect(SPI1, B13 /*DC*/, B14 /*CE*/, B15 /*RST*/, function() { g.clear(); g.drawString("Hello",0,0); g.drawString("World",0,5); });
[/codesyntax]
Links