forked from UCTRONICS/U6143_ssd1306
SSD1306 Modified Driver and Installer Script for UCTRONICS U6143 Raspberry Pi Rackmount Case. Modified source project to display temps in Celsius and dynamically configure system hostname in header file using installer script. Installer script also configures systemd rc-local functionality and enables OLED screen using the modified parameters at boot.
Download installer script, set executable, and run with Bash: For now - run as root!
sudo -i
wget https://raw.githubusercontent.com/brad07x/U6143_ssd1306_ubuntu/master/install.sh
chmod +x install.sh
./install.sh
sudo raspi-config
Choose Interface Options Enable i2c
git clone https://github.com/UCTRONICS/U6143_ssd1306.git
cd U6143_ssd1306/C
sudo make clean && sudo make
sudo ./display
- Open the rc.local file
sudo nano /etc/rc.local
- Add command to the rc.local file
cd /home/pi/U6143_ssd1306/C
sudo make clean
sudo make
sudo ./display &
- reboot your system
- For the older version lcd without mcu controller, you can use python demo
- Install the dependent library files
sudo pip3 install adafruit-circuitpython-ssd1306
sudo apt-get install python3-pip
sudo apt-get install python3-pil
- Test demo
cd /home/pi/U6143_ssd1306/python
sudo python3 ssd1306_stats.py
- Open the U6143_ssd1306/C/ssd1306_i2c.h file. You can modify the value of the TEMPERATURE_TYPE variable to change the type of temperature displayed. (The default is Fahrenheit)