How to enable OLED display

From Geekworm Wiki
Revision as of 17:42, 19 November 2022 by Harry (talk | contribs)
Jump to navigation Jump to search

How to enable OLED display on Raspbian:

1. Update your Pi and Install the required dependencies

sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install i2c-tools python3-smbus python-smbus
sudo apt-get -y install python3-pip python3-pil
sudo apt-get -y install python3-pip python3-pil
sudo pip3 install --upgrade setuptools
sudo pip3 install --upgrade adafruit-python-shell             
sudo pip3 install adafruit-circuitpython-ssd1306 
sudo pip3 install pi-ina219 
sudo pip3 show pi-ina219

2. Run the following command to check the oled i2c port

sudo i2cdetect -y 1

for X729, the I2C address is 0x3c

Add your comment
Geekworm Wiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Anonymous user #1

17 months ago
Score 0++

Could you please update this page according to actual Raspberry OS release?

No python-smbus package there and couple errors coming on install adafruit-circuitpython-ssd1306

Harry

13 months ago
Score 0++
Hi, you can ignore python-smbus package.