Hello all,
I got some strange behavior with my ESP32. Sometimes it feels like the controller fall asleep for a short time and reacts to a interrupt with a high time delay of around a second.
Background: I use a decoder to change the info on a LCD. Id the encoder counts one step an interrupt is raised and a callback function will change the LCD info.
There are some for-loops with a 10ms sleep. But I think the Interrupt will also be recognized if the controller is in a sleep state.
The time to transmit the info to the LCD is high of course and I know that the communication via I2C is slow. But if I add all the times to a sum I would expect a REACTION time of less than 100ms. And in most cases this is what happens. But sometimes I turn the decoder one step and put my hands away and then after a second the reaction happens. Have no idea what happens or what could delay the interrupt callback that way.
Do you have any ideas?