Skip to content

tuw-cpsg/nokia5110-lcd-driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nokia 5110 LCD Driver displaying Daisy's Status

Code and scripts to control an LCD displaying Daisy's Status.

status.sh prints following status information:

  • WiFi connection (iwconfig)
  • WiFi IP (ifconfig)
  • Ping Jetson board (daisy)

Setup

  • Connect according to the pinout to a 3.3V power supply.
LCD Pi (see disp.c) Gertboard
RST BCM 27 GP21
CE BCM 22 GP22
DC BCM 23 GP23
DIN BCM 24 GP24
CLK BCM 25 GP25
VCC not connected 3V3
LIGHT not connected GND
GND not connected GND
  • Clone this repo to Daisy's Pi, here: /home/pi/status-lcd.

  • Install Linux Kernel Headers.

    sudo apt-get install raspberrypi-kernel-headers
  • Build by calling make in this directory on the Pi.

  • Add following lines to /etc/rc.local to start the status display at boot.

    # status display
    /home/pi/status-lcd/prepare.sh
    insmod /home/pi/status-lcd/lcd5110.ko
    /home/pi/status-lcd/status.sh > /dev/lcd5110 &
    echo "endlessly write the Pi's status to the Nokia5110 LCD"

    Prepare and load the driver (sudo prepare.sh, sudo insmod lcd5110.ko). Finally start the status.sh script that continuously prints the status to stdout which is forwarded to the LCD.

License Information

This repo has been forked: Original Repo by Christian Hirsch. Code is licensed under Dual BSD/GPL (GPLv2 or BSD choice). Following changes have been made: added the status.sh script, changed pinout and added instructions.

References

About

Linux driver for Nokia 5110 LCD display for use with Daisy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 88.1%
  • Shell 10.0%
  • Makefile 1.9%