OLED Usage
Plugin the OLED and power the Pi back up. Run the following command
from the terminal (also known as the shell or command-line interface).
Step 1 Enable I2C
Choose Interface Options Enable i2c
sudo raspi-config
Clone U6143_ssd1306 library
git clone https://github.com/UCTRONICS/U6143_ssd1306.git
Step 2 Configure your OLED
Option 1: Add manual start script
Jump to the C folder:
cd U6143_ssd1306/C
Compile the program:
sudo make clean && sudo make
Run:
sudo ./display
Then save and exit.
Reboot to verify that the screen comes up on boot!
Option 2: Add automatic start script
If you want it to run whenever you start your Raspberry Pi, you can pretty
easily make it so. The fastest/easiest way is to put it in /etc/rc.local.
Run:
sudo nano /etc/rc.local
Add the following command on a separate line below the fi:
cd /home/pi/U6143_ssd1306/C
sudo make clean
sudo make
sudo ./display &
Then save and exit.
Reboot to verify that the screen comes up on boot!
NOTE: This script is only available for Raspbian. For more scripts, check
out our GitHub page: https://github.com/UCTRONICS/U6143_ssd1306,
and we will keep online up-to-date continuously for other OSs.
09