Display driver for UCTRONICS Ultimate Rack with PoE Functionality for Raspberry Pi 4 (SKU U6145)
Begin by enabling the I2C interface:
sudo raspi-config
Choose Interface Options
| I2C
, then answer Yes
to whether you would like the ARM I2C interface to be enabled.
Install Git and library dependencies
sudo apt update
sudo apt install git wiringpi
git clone https://github.com/UCTRONICS/U6143_ssd1306.git
cd U6143_ssd1306/C
make clean && make
sudo ./display
Copy the binary file to /usr/local/bin/
:
sudo cp ./display /usr/local/bin/
Choose one of the following configuration options (systemd
or rc.local
):
sudo cp ./contrib/U6143_ssd1306.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable U6143_ssd1306.service
sudo systemctl start U6143_ssd1306.service
OR add the startup command to the rc.local
script (not recommended)
sudo nano /etc/rc.local
and add the command to the rc.local file:
/usr/local/bin/display &
Reboot your system:
sudo reboot now
For the older version LCD without MCU controller, you can use the Python demo.
Install the dependent library files:
sudo apt update
sudo apt install python3-pil python3-pip
sudo pip3 install adafruit-circuitpython-ssd1306
Test demo:
cd U6143_ssd1306/python
sudo python3 ssd1306_stats.py