Using the Retroflag NESPI Case+ with balenaOS. Adding the ability of soft shutdown to balenaOS and the NESPI CASE+ on the Raspberry Pi
Log into your device:
balena ssh <applicationOrDevice>
Install the overlay:
wget -O - "https://raw.githubusercontent.com/ykelle/balena-picase/main/overlay.sh" | bash
or
wget -O "/mnt/boot/overlays/RetroFlag_pw_io.dtbo" "https://raw.githubusercontent.com/RetroFlag/retroflag-picase/master/RetroFlag_pw_io.dtbo"
Reboot your device.
Click this to deploy this repository to balenaCloud:
or download this repo, navigate into the folder and run
balena push <applicationOrDevice>
This project uses files from the Retroflag-Repo. The python script will run in a docker container and not directly on the Raspberry Pi. Instead of using system calls in the script, we are interacting with the balena Supervisor.