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)
- 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
makein this directory on the Pi. -
Add following lines to
/etc/rc.localto 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 thestatus.shscript that continuously prints the status tostdoutwhich is forwarded to the LCD.
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.