A simple driver for showing text on a nokia 5110 LCD display.
A nokia 5110 display (https://www.sparkfun.com/products/10168). Connect the pins in the following way:
- RST -> P10
- CE -> P11
- DC -> P12
- DIN -> P15
- CLK -> P13
- LIGHT -> P16
The SPI module also needs a pin for the MISO line (DIN is MOSI), for this use the default pin P14.
RST, CE, DC can be changed using display.changeBusPins(DigitalPin RST, DigitalPin CE, DigitalPin DC)
. LIGHT can be changed using display.changeLightPin(DigitalPin LIGHT)
. DIN and CLK (and MISO) cannot be changed.
MIT
- for PXT/microbit (The metadata above is needed for package search.)