The project supports running on RaspberryPi, Ubuntu, HomeAssistant,You can also use Python to call compiled DLLs on these platforms.
Add the following to the /boot/config.txt file
dtparam=i2c_arm=on,i2c_arm_baudrate=400000Add the following to the /boot/config.txt file
dtoverlay=gpio-shutdown,gpio_pin=4,active_low=1,gpio_pull=upreboot your system
sudo rebootWait for the system to restart
Install necessary dependencies to compile the project:
sudo apt install make gcc$ apk add make gcc musl-dev i2c-tools i2c-tools-dev linux-headersgit clone https://github.com/UCTRONICS/SKU_RM0004.gitcd SKU_RM0004
make./display
- Create file
/etc/systemd/system/rpi-display.service[Unit] After=network.target [Service] ExecStart=/home/user/git/SKU_RM0004/display [Install] WantedBy=default.target - Create folder (if it doesn't exist):
$ mkdir /etc/systemd/system/default.target.wants - Create soft link to service file:
$ ln -s /etc/systemd/system/rpi-display.service /etc/systemd/system/default.target.wants/default.target.wants
Open the rc.local file
sudo nano /etc/rc.localAdd command to the rc.local file
cd /home/pi/SKU_RM0004
make clean
make
./display &reboot your system