Linux seems to be lacking in dynamic pin muxing controls. It is possible to declare multiple named sets of (Linux) "pinctrl" blocks and switch between them, but I think that has to be requested by a driver.Afaict, though, once gpiod has trounced a PWM pin there's no standard way to get it back into the correct alt mode? "pinctrl" seems to be the only method which works great in scrappy bash scripts for playing with PWM, but isn't exactly translatable to a Python library....
Statistics: Posted by PhilE — Wed Mar 06, 2024 5:35 pm