I want to read the event generated by a rotary encoder connected to GPIO.
I configured the Kernel driver in config.txt:
With program evtest I'm able to see that it's working correctly.
Code: Select all
dtoverlay = rotary-encoder, pin_a=7, pin_b=17, steps-per-period=4, relative_axis
What I'm not able to do, yet, is to read the events with a code in Pascal. I've not found any relevant example or docs.
Some help is welcome, before I read all the BIG docs for Kernel drivers and C source