is it possible to read rotary encoders while the arduino updates I2C display?

Hi guys .

I have to read a rotary encoder , not so fast.
Using only digitalread comparation to read and compare the pins , I miss some "ticks" when arduino is updating a display.

My question is , is it possible read the rotary encoder via interruption or any other way , while the arduino updates an I2C display ?
Does the interruptions pins works while arduino updates the display?

Thank you

The Encoder library may be of use to you.

Does the interruptions pins works while arduino updates the display?

Interrupts will be serviced when they occur, even during a display update. That is why they are called interrupts.

Thank you ground fungus !!

You can also use the I2C Encoder ! :slight_smile:

Thanks fatoresaimon.
Good choice too!

Found this , GitHub - brianlow/Rotary: Rotary encoder library for Arduino

Working like a breeze!