/U6143_ssd1306

Display driver for UCTRONICS Ultimate Rack with PoE Functionality for Raspberry Pi 4 (SKU U6145)

Primary LanguageC

U6143_ssd1306

Display driver for UCTRONICS Ultimate Rack with PoE Functionality for Raspberry Pi 4 (SKU U6145)

I2C

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

Clone U6143_ssd1306 library

git clone https://github.com/UCTRONICS/U6143_ssd1306.git

Compile

cd U6143_ssd1306/C
make clean && make 

Run

sudo ./display

Add automatic start script

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 older 0.91 inch LCD without MCU

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