but due to confinement this command can’t be run, because it doesn’t exist for snap container. Is there a way to do/enable it? I’m using gpiozero Python package for other things and I have gpio, gpio-control plugs enabled (I don’t know how they work tho).
well, either is better than shelling out to raspi-gpio … thats why i asked
(i believe @waveform plans to backport raspi-gpio eventually though, so you should eventually be able to stage it in a snap and use it like above if you really need/want to)
Yeah, but for me LEDs are working until shutting down, it seems they’re somehow getting reset to the state before running the snap app. So, even if I turn off all LEDs in Python, after stopping snap it gets back and I have all LEDs on again. The code I posted earlier is my workaround for this problem, ugly but it works for me.