GPIO Zero makes you access pins as if they are devices, but you can use them like normal inputs and outputs too. https://gpiozero.readthedocs.io/en/stable/api_input.html#inputdevice https://gpiozero.readthedocs.io/en/stable/api_output.html#gpiozero.OutputDevice
Category: GPIO Zero
.GPIO Zero General
Seems to be the library to switch to as it supports the RPi5 https://gpiozero.readthedocs.io/en/stable/index.html#