Changes

Jump to navigation Jump to search

How to enable OLED display

718 bytes added, 17:55, 19 November 2022
no edit summary
2. Run the following command to check the oled i2c port
sudo i2cdetect -y 1
for X729, the I2C address is 0x3c
for pi@raspberrypi ~ $ cd oled (7.2) Install the Adafruit CircuitPython library pi@raspberrypi:~/oled $ sudo python3 raspi-blinka.py (7.3) Answering Y and hitting Enter when reboot prompted. Then renavigate to the oled directly by entering: pi@raspberrypi ~ $ cd oled (7.4) Run the script to test the display pi@raspberrypi:~/oled $ sudo python3 x729.py (7.5) Run the script at Raspberry Pi boot pi@raspberrypi:~/oled $ sudo crontab -e (7.6) Add a line at the end of the file that reads like this: @reboot cd /home/pi/oled && python3 /home/pi/oled/x729.py &[[File:X729-9.png|none]] Save and exit. In nano, you do that by hitting CTRL + X, the I2C address is 0x3canswering Y and hitting Enter when prompted.
<!--Add review function! -->

Navigation menu