I would like to control a 1.3" OLED display via the i2c interface of the Raspberry 4B.
It should be a status display of the Pi.
Can someone tell me how to proceed with the installation.
I have instructions for an installation, but I do not know how to load the files.
Where do I have to activate the interface and how can I use Sudo to load and install the files.
How can I run the following commands:
Code: Select all
sudo raspi-config Now we select under "Interfacing Options" the item "I2C" and confirm with <Yes>. After that we need some system programs: sudo apt-get install -y python-dev python3-dev python-imaging python-smbus i2c-tools git python3-pip python-setuptools build-essential git-core libi2c-dev i2c-tools lm-sensors python-pip With the command i2cdetect -y 1 we get the following output if the display was wired correctly: If the display was successfully detected, we can now download and install the required libraries: git clone git://github.com/rm-hull/ssd1306.git cd ssd1306 sudo python setup.py install cd examples git clone https://github.com/rm-hull/luma.examples.git cd luma.examples/examples If all this is done now we can start different demos: Analog clock with date python clock.py --display sh1106 Text and logo (animated) python crawl.py --display sh1106 3D animation python sprite_animation.py --display sh1106 gif (animated) player python animated_gif.py --display sh1106 To display system info we need psutil: sudo pip install psutil python sys_info.py --display sh1106