OK, thanks, @[deleted] . No Python yet, that makes sense.
What about enabling GPIO LED/shutdown/etc using device tree overlays in boot/config.txt
? In Batocera, it looks like at the moment the status LED could be set up at GPIO 14, using enable _uart=1
.
In Raspberry Pi OS, we can also enable the shutdown switch at GPIO 3 with dtoverlay=gpio-shutdown
, but that does not work with Batocera. The automatic cooling fan control at GPIO 12, enabled with dtoverlay=gpio-fan
(which I did not test for Batocera), would also be particularly useful for RPi4s - they get hot quickly.
I’m no coder, I have no idea why some distros allow using DT overlays, while others do not, or what are the pros and cons, but this LED/shutdown/fan control stuff becomes much simpler to set up compared to Python scripts - at least for a RPi4 without any fancy external LED/power/fan circuitry.
All the best
arthur