This repository is for mini tower case's OLED 0.96 screen
- Turn on
i2c function
by usingsudo raspi-config
->interface options
->i2c
->enable
->yes
. - Check if the screen has been recognized by Raspberry Pi
i2cdetect -y 1
if encount command not found
error, please install i2c-tools
by using sudo apt update && sudo apt -y install i2c-tools
.
- Install dependencies libraries:
sudo apt -y install python3 python3-pip python3-pil libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libopenjp2-7 libtiff5
- Grant privilleges to user
pi
sudo usermod -a -G gpio,i2c pi
- Download sample code from this repo:
git clone https://github.com/rm-hull/luma.examples.git
cd luma.examples/
- Install the dependencies
sudo -H pip3 install -e .
- Entering into example folder and test it.
cd examples/
sudo python3 sys_info.py
- You should seen this screen on OLED: