Go Down

Topic: is it possible to read rotary encoders while the arduino updates I2C display? (Read 213 times) previous topic - next topic

gibrancurtiss

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



groundFungus

The Encoder library may be of use to you.

Quote
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.


fattoresaimon

You can also use the I2C Encoder :)

gibrancurtiss

Thanks fatoresaimon.
Good choice too!


Found this , https://github.com/brianlow/Rotary

Working like a breeze!

Go Up