A quick Nokia 5110 LCD test using hardware SPI and the Adafruit PCD8544 library.
Here's a quick demo..
I've been having SPI conflicts with other libraries I've used for controlling the Nokia 5110 LCD, so time to pull out the big guns - the wonderful Adafruit library set which includes a PCD8544 module.
This is a test of the hardware SPI configuration, which means pin connections are fixed for MOSI and SCK.
Here's the mapping from the terminology used by my particular 5110 module and pins on an Arduino Uno.
Pin | Usage | Arduino Uno Pin |
---|---|---|
RST | reset | 7 |
CE/SCE/SS | chip enable | 6 |
DC/CSN | data/command select | 5 |
DIN | data in | 11 SPI MOSI |
CLK | clock | 13 SPI SCK |
VCC | power | 5V |
BL | Backlight on when GND | n/c |
GND | Ground | GND |
- Adafruit-PCD8544 Library - GitHub
- LEAP#366 AdafruitSoftwareSPI - same project using software SPI
- ..as mentioned on my blog