Quick hack to find out where your code is spending it time..
https://wokwi.com/projects/401648697254779905
This gives a code snippet that you can copy into any Arduino sketch to show you how long functions are taking to exicute.
Wokwi
Function timer - Wokwi ESP32, STM32, Arduino Simulator
Run IoT and embedded projects in your browser: ESP32, STM32, Arduino, Pi Pico, and more. No installation required!
0 Replies