Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 1009 Bytes

README.md

File metadata and controls

35 lines (32 loc) · 1009 Bytes

minitowercase

This repository is for mini tower case's OLED 0.96 screen

How to enable OLED 0.96

  1. Turn on i2c function by using sudo raspi-config -> interface options -> i2c -> enable -> yes.
  2. 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.

  1. Install dependencies libraries:
sudo apt -y install python3 python3-pip python3-pil libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libopenjp2-7 libtiff5
  1. Grant privilleges to user pi
sudo usermod -a -G gpio,i2c pi
  1. Download sample code from this repo:
git clone https://github.com/rm-hull/luma.examples.git
cd luma.examples/
  1. Install the dependencies
sudo -H pip3 install -e .
  1. Entering into example folder and test it.
cd examples/
sudo python3 sys_info.py
  1. You should seen this screen on OLED: