❔ Making an async function or event system to get steps on an encoder.
I am using an encoder with the GPIO controller on my pi in C#, the main issue is I dont understand how to read the leading edges without making a constantly running function. I have ha 2 ideas of how to read the encoder in and its either an event to increase a counter, or an async function that is constantly running to look for the leading edge. the issue is im not particularly versed in either of those things.