I am building a simple rain meter which uses a reed switch on a rain collection device to register a certain amount of water received. The reed switch momentarily closes when the container is emptied.
It will be connected between 0V and a GPIO pin, which will have a 4K7 pull-up to 3.3V so that on activation there is a low level pulse which needs to be detected.
About 8 years ago or so I used the PiGpio unit to handle the read/write of GPIO pins on the RPi and it worked OK. But since then I have not dealt with the GPIO pins much...
The RPi has evolved from then and now I am not sure what to use in order to do the I/O stuff...
Newer RPi devices use different hardware and 64 bit operating system etc...
So what is the state of the PiGpio unit now?
Can it be used with RPi devices like RPi2, RPi3, RPi4, RPi5, RPiZero-W?
And does it work with PiOS both 32 and 64 bit?
I do not want to use anything like Python etc, just Pascal and Lazarus as dev tool.
EDIT
Question:
Is there a way to define some kind of interrupt that fires when the input pin changes state?
It seems like a waste to loop reading the port to see the high-to-low transition...