Skip to content

blazespirit/rpi-oled-menu

Repository files navigation

Raspberry Pi OLED display menu

This is a simple menu GUI displayed on a 128x64 OLED display

Setup

  1. Check if your Python version is 3.7.0 or above
python --version
  1. Install necessary packages
sudo apt install -y python3-dev
sudo apt install -y python-smbus i2c-tools
sudo apt install -y python3-pil
sudo apt install -y python3-pip
sudo apt install -y python3-setuptools
sudo apt install -y python3-rpi.gpio
sudo apt install -y python3-gpiozero

more info: https://www.raspberrypi-spy.co.uk/2018/04/i2c-oled-display-module-with-raspberry-pi/

  1. Enable I2C interface
sudo raspi-config

additional info: https://www.raspberrypi-spy.co.uk/2014/11/enabling-the-i2c-interface-on-the-raspberry-pi/

  1. Increase I2C bus speed for better OLED performance: https://www.raspberrypi-spy.co.uk/2018/02/change-raspberry-pi-i2c-bus-speed/

  2. [Optional] There is a script to read temperature from 4 DS18B20 sensors, so you will need to enable the 1-wire protocal

dtoverlay=w1-gpio

add the aboce line to /boot/config.txt

References

Other notes

Recommended Python version 3.7.3

python script must handle SIGTERM properly

Must use GPIO PinMode = BCM, not BOARD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published