Hello,
I have an incremental encoder and I want to know if I can use GPIO ports, but just for recording data in some variables and not to be used as command directly.
Let's say my encoder has 2 pins : A and B. When I turn the encoder, A and B value change from 0 to 1 and vice versa in a certain manner. Is it possible to plug A and B pins in ports 3 and 4 (button 0 and 1) of the GPIO and then continuously save the values in two variables ?
After that, I would like to make some operations on the variables to determine the direction of rotation, and then send a command to a video according to the result ... but this will be another step.