Hey RyanPaesschesooneVintecc - at runtime, the current way to control the OAK4 status LED is to write to /dev/status_led from code running on the device. For example:
echo "255,255,0,0" > /dev/status_led # red
echo "255,0,255,0" > /dev/status_led # green
echo "255,0,0,255" > /dev/status_led # blue
echo "0,0,0,0" > /dev/status_led # off
For an OAK App, you can expose this device in oakapp.toml:
required_devices = ["/dev/status_led"]
allowed_devices = [{ allow = true, access = "rwm" }]
Then your application can update the LED based on system state, communication errors, etc.
There is also an example using a DepthAI Script node here:
luxonis/oak-examplesblob/main/neural-networks/speech-recognition/whisper-tiny-en/utils/led_changer_script.py
Regarding a dedicated high-level DepthAI Python API for this, I don’t have a confirmed release timeline at the moment, so I wouldn’t want to promise an ETA. For now, /dev/status_led is the recommended approach.
Best,
Oskar