Hi! I’ve replaced 3 functions mentioned eralier with return 0. Still no effect. I haven’t got encoder yet due to Chineese New Year.
I’ve got a new hypothesis: the problem could be in ESP32. In my past experience, it doesn’t work well if too many devices are connected to digital ports. 6 ports are in use in this setup. I’ll try replacing it with Arduino later.