Read PWM config from /boot/firmware first to support Bookworm and later OSes#230
Conversation
|
On second thought, it may be better to extract the PWM pin configuration from running |
|
|
This enables PWM on pins 13 and 18 to control the built-in dimmable illumination LEDs on Limelight 2+ and 3. The symlink at `/boot/config.txt` exists since that is the only path diozero checks for pwm configuration right now, and should be removed once diozero is updated to check `/boot/firmware/config.txt` or another source of PWM information ([diozero#230](mattjlewis/diozero#230)). Both LL2+ and LL3 have non-flickery LED dimming with these changes. Needed to fix flickering LEDs in [photonvision#2335](PhotonVision/photonvision#2335).
|
Actually, I'm probably mixing up libraries here. |
|
Thank you - merged |
Starting in RPiOS Bookworm, the boot partition mount point moved from
/bootto/boot/firmware. Due to this,config.txtis now located at/boot/firmware/config.txtfor modern RPiOS versions. This change set searches the new location first, falling back to the old location if an IOException occurs (the new file is not found).