
09
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).
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.
Choose Interface Options Enable i2c
sudo raspi-config
Clone U6143_ssd1306 library
git clone https://github.com/UCTRONICS/U6143_ssd1306.git
Jump to the C folder:
cd U6143_ssd1306/C
Compile the program:
Then save and exit.
Reboot to verify that the screen comes up on boot!
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.
sudo make clean && sudo make
Add the following command on a separate line below the fi:
Then save and exit.
Reboot to verify that the screen comes up on boot!
cd /home/pi/U6143_ssd1306/C
sudo make clean
sudo make
sudo ./display &
Run:
sudo ./display
Run:
sudo nano /etc/rc.local
Step 1 Enable I2C
Option 1: Add manual start script
Option 2: Add automatic start script
Step 2 Configure your OLED