Difference between revisions of "How to enable OLED display"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
How to enable OLED display on Raspbian: | How to enable OLED display on Raspbian: | ||
− | Update your Pi and Install the required dependencies | + | 1. Update your Pi and Install the required dependencies |
<syntaxhighlight lang="Shell"> | <syntaxhighlight lang="Shell"> | ||
Line 16: | Line 16: | ||
pi@raspberrypi ~ $ sudo pip3 show pi-ina219 | pi@raspberrypi ~ $ sudo pip3 show pi-ina219 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | 2. Run the following command to check the oled i2c port | ||
+ | sudo i2cdetect -y 1 | ||
+ | |||
+ | for X729, the I2C address is 0x3c | ||
<!--Add review function! --> | <!--Add review function! --> |
Revision as of 17:41, 19 November 2022
How to enable OLED display on Raspbian:
1. Update your Pi and Install the required dependencies
pi@raspberrypi ~ $ sudo apt-get update
pi@raspberrypi ~ $ sudo apt-get -y upgrade
pi@raspberrypi ~ $ sudo apt-get -y install i2c-tools python3-smbus python-smbus
pi@raspberrypi ~ $ sudo apt-get -y install python3-pip python3-pil
pi@raspberrypi ~ $ sudo apt-get -y install python3-pip python3-pil
pi@raspberrypi ~ $ sudo pip3 install --upgrade setuptools
pi@raspberrypi ~ $ sudo pip3 install --upgrade adafruit-python-shell
pi@raspberrypi ~ $ sudo pip3 install adafruit-circuitpython-ssd1306
pi@raspberrypi ~ $ sudo pip3 install pi-ina219
pi@raspberrypi ~ $ 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
Enable comment auto-refresher
Anonymous user #1
Permalink |
Harry