Skip to content

suphatw/rasberry-pi-oled-device-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RasberryPi OLED 0.91 inc

RasberryPi Config

sudo raspi-config

Interfacing option => I2C option => Enable

Install Lib

sudo apt update
sudo apt install python3-pip python3-smbus i2c-tools python3-venv -y
sudo apt install -y python3-pip python3-dev python3-setuptools i2c-tools libgpiod2

pip install luma.oled --break-system-packages
pip install adafruit-circuitpython-ssd1306 --break-system-packages
pip install adafruit-blinka psutil Pillow --break-system-packages

File

Python file oled_status.py

Test Python

python oled_status.py

Script for start command to OLED, file name start.sh

python ~/oled/oled_status.py >> ~/oled/oled_log.txt 2>&1

Chang Permission

sudo chmod +x oled_status.py
sudo chmod +x start.sh

Service File, file in /etc/systemd/system/oled.service change Path, User, Group

Start Service Command

sudo systemctl daemon-reexec
sudo systemctl enable oled.service
sudo systemctl start oled.service
sudo systemctl restart oled.service
systemctl status oled.service

About

Rasberry Pi show device state, conain ip, cpu, temp, ram, disk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published