Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 1.31 KB

README.md

File metadata and controls

35 lines (31 loc) · 1.31 KB

RASPBERRY PI 3B+ PROGRAM TO INTERFACE AND CONTROL A NOKIA 5110 LCD

Program Using the Linux SPIDEV character driver and the libgpiod GPIO library to control a NOKIA 5110 LCD screen

DEMO

picamera_recorded_to_stdout_read_to_Nokia_5110_pokemon_battle_2speed_compressed.mp4

Nokia 5110

Nokia 5110 is a Nokia GSM mobile phone model. It was released in 1998. At one point, it was said to be the most popular mobile telephone in the world.

REQUIREMENTS TO RUN

Requires a raspberry pi computer running bullseye or bookworm os, Nokia 5110 LCD, gpiod library, and a rpi camera.

HOW TO RUN

Assuming you have wired your SPI interface to the Nokia 5110 with the 2 GPIO (d/c and rst) pins correctly connected. With a cmd line open in a directory:

git clone https://github.com/ChrisStewart132/rpi_PCD8544_Nokia_5110_Display.git

Navigate into the cloned directory:

cd rpi_PCD8544_Nokia_5110_Display

install libgpiod

sudo apt install libgpiod-dev

Compile:

gcc -o YUV420_to_binary_threshold YUV420_to_binary_threshold.c
gcc -o Nokia_5110_bitmap_stream_from_stdin_V2 Nokia_5110_bitmap_stream_from_stdin_V2.c -lgpiod

Run

rpicam-vid -n -t 0 --framerate 30 --width 128 --height 160 --codec yuv420 -o - | ./YUV420_to_binary_threshold | ./Nokia_5110_bitmap_stream_from_stdin_V2