After studying the available options I decided to enhance RPi.GPIO.
If I was 20 years younger I would write a new dynamic library in C and a Python overlay, but a few simple changes to RPi.GPIO met my needs.
This is compatible with RPi.GPIO with 3 additions:-
`read_gpio` Returns the GPIO level. Returns HIGH=1=True or LOW=0=False
`get_alt` Return the current ...
The BCM2711 SOC in the Pi4 has a new Peripheral implementation (all previous SOC had the same Peripheral implementation) which provides additional functionality. This includes the original functionality as a subset.
While attempting to access this additional functionality I studied existing c and Python libraries and thought others may be interested in my ...