linkpi_firmware_history/rootfs/link/shell/oled.sh

8 lines
161 B
Bash

if [ "`cat /link/config/fac`" != "SH" -o "`i2c_read 0 0x78 0 | grep error`" == "" ]; then
while [ true ]
do
/link/bin/OLED -platform offscreen
sleep 2
done
fi