OLED USAGE
RM0004-0.96” LCD USAGE
1. Enable i2c1 and set the speed
2. Add the shutdown function
3. Configure manual start script
4.Then Add automatic start script
5.Enjoy
sudo nano /boot/config.txt
sudo nano /boot/config.txt
Add the following command to /boot/config.txt file:
dtparam=i2c_arm=on,i2c_arm_baudrate=400000
Add the following command to the /boot/config.txt file:
dtoverlay=gpio-shutdown,gpio_pin=4,active_low=1,gpio_pull=up
Save and exit, then reboot:
sudo reboot
Clone SKU_RM0004 library
git clone https://github.com/UCTRONICS/SKU_RM0004.git
Compile
cd SKU_RM0004
make
Run
./display
Open the rc.local file
sudo nano /etc/rc.local
Add command to the fi of the rc.local file
cd /home/pi/SKU_RM0004
make clean
make
./display &
Save and exit, then reboot: sudo reboot
Now your OLED display is configured to display the IP/CPU/RAM/DISK/TEMP, while
enjoying the safe shutdown and power on with just a press of the on/off button.
Press the power button and then configure the following script to use the
safe shutdown function.
Save and exit.