Wiring

Connecting a Raspberry Pi or Beaglebone Black to the Nokia LCD is very simple because these boards use the same 3.3 volt I/O as the LCD. There's no need to use a level converter chip like with the Arduino!

In general you will need to connect the LCD's SCLK, DIN, and CS pins to the board's SPI pins, and the LCD's RST and D/C pins to two free digital I/O pins. With this setup you can use the very fast hardware SPI support built into your board.

However if you need more flexibility and don't require fast screen updates, the library also supports software SPI on any 5 digital I/O pins (SCLK, DIN, CS, RST, D/C). The example code on the next page describes how to enable software SPI. If you aren't sure what to use, start with hardware SPI since it's much more responsive at updating the display.

Raspberry Pi

To connect the LCD to a Raspberry Pi, the Pi's hardware SPI pins and two GPIO pins should be wired to the LCD as follows:
The above wiring will support talking to the LCD over the /dev/spidev0.0 interface.


Beaglebone Black

To connect to the Beaglebone Black, connect the SPI0 pins and two additional digital IO pins as follows:
The configuration above will enable communication with the LCD over the /dev/spidev1.0 interface.

Also if you are new to the Beaglebone Black, take a moment to review how the GPIO pins are laid out and numbered on the board. There are a lot of pins so be careful to connect the LCD to the right ones!

Once your LCD is connected to your hardware, power on your device and confirm the LCD backlight turns on. If you don't see the backlight turn on double check your ground and voltage wiring carefully.
This guide was first published on May 30, 2014. It was last updated on May 30, 2014. This page (Wiring) was last updated on Aug 18, 2019.