GitHub - khoih-prog/ESP32_S2_TimerInterrupt: This library enables you to use Interrupt from Hardware Timers on an ESP32-S2-based board. These ESP32-S2 Hardware Timers, using Interrupt, still work even if other functions are blocking. Moreover,
MicroPython: Timers in ESP32 and ESP8266 - Generate Delay with Timer