Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 2.29 KB

README.md

File metadata and controls

74 lines (56 loc) · 2.29 KB

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