A small program to drive the pcd8544 cpu info screen on a raspberry pi
This is a simple small program to drive a product called the RPi 1.6" CPUInfo Screen This product basically contains a Nokia 5110 screen with a pcd8544 controller.
The pinout of this circuit is as follows
Function | PIN | WiringPI |
---|---|---|
CLK | 11 | 0 |
DIN | 12 | 1 |
DC | 13 | 2 |
CE | 15 | 3 |
Vcc | 1 | |
Gnd | 6 | |
Rst | 16 | 4 |
BackLgt | 7 | 7 |
First install the wiringPi library if not already installed. Instructions can be found here:
http://raspberry-python.blogspot.nl/2012/09/getting-wiringpi-on-pi.html
or here
http://wiringpi.com/download-and-install/
If not already installed install build-essential with
sudo apt-get update
sudo apt-get install build-essential
git clone this code
git clone https://github.com/MichelVos/rpi_cpu_infoscreen.git
enter the directory where you installed this source Enter the src directory and type
make
After a little while you should have a program called
cpuinfo
install cpuinfo as service,and make it it run at boot
make install
service cpuinfo start
Now you can enter
cpuinfo
on the command line
There is also a little script called update that fetches some more or less usefull stuff to put on your shiny new display.
Enjoy!