As of Linux kernel 5.11, the old methods of communicating with header pins on the Raspberry Pi no longer work. This means packages such as RPi.GPIO no longer function properly with newer kernels.
https://ubuntu.com/tutorials/gpio-on-raspberry-pi#1-overview
Proposal: Use lgpio instead of the deprecated RPi.GPIO library
- Built-in i2c access: No need for a dedicated i2c library anymore
- Future-proof low-level access to GPIO via
/dev/gpiochip
Proposal: Use lgpio instead of the deprecated RPi.GPIO library
/dev/gpiochip