- Raspberry Pi 4
- OLED SSD1306 Display I2C IIC 128x32 0.91 4 pin
Highlevel guidelines written by heart. Some steps might be missing, some commands might have the syntax not 100% accurate.
- Python3 must be installed.
- Adafruit CircuitPythin must me be installed
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi
https://learn.adafruit.com/adafruit-pioled-128x32-mini-oled-for-raspberry-pi/usage - DejaVuSans.ttf font must be present in /usr/share/fonts/truetype/dejavu/ folder
https://www.fontsquirrel.com/fonts/dejavu-sans
- getting the files
cd ~
git clone https://github.com/f616/raspberrypi_oled_stats.git
cd raspberrypi_oled_stats
- create and enable the service
cd /usr/bin/
sudo ln -s ~/raspberrypi_oled_stats/statsdisplay_start.py
sudo ln -s ~/raspberrypi_oled_stats/statsdisplay_stop.py
cd /lib/systemd/system
sudo ln -s ~/raspberrypi_oled_stats/statsdisplay.service
cd /etc/systemd/system/multi-user.target.wants/
sudo ln -s /lib/systemd/system/statsdisplay.service
sudo systemctl daemon-reload
To enable the service at start-up:
sudo systemctl enable statsdisplay.service
Start the service command:
sudo service statsdisplay start
Stop the service command:
sudo service statsdisplay stop
Get the service status
sudo service statsdisplay status
https://oshwlab.com/filipe.neto616/raspberry-pi-40-pin-header-replicator
https://learn.adafruit.com/adafruit-pioled-128x32-mini-oled-for-raspberry-pi/usage
https://www.raspberrypi.org/forums/viewtopic.php?t=22180
https://learn.sparkfun.com