Ky-040 rotory encoder not working with r4 wifi

I have tried many libraries. I have used all the example code. I have read through this long topic: https://forum.arduino.cc/t/wiring-of-ky-040-rotary-encoder-plus-demo-code/235847. I cannot get my ky-040 working with the arduino uno r4 wifi board. It works fine with my r3. So what can I do? Thanks.

I just found a post pointing me to the dronebot workshop. Using Rotary Encoders with Arduino | DroneBot Workshop . His code worked like a charm. Thanks a million for the dronebot workshop. He is alwase helpful, accurate, simple, and in-depth all at the same time.

It would be more helpful if you told us what was wrong.

I thought it was clear that "not working" was synonymous to "not giving data". Next time I will be more specific. Thanks for pointing that out. :+1: