Hello,
I have noticed some issue.
If i use asyncio and i await for event.wait(), i can get very large delays.
My dirty fix: make a new task with:
while True:
await asyncio.sleep(0)
and i get very good timing, from 2000ms:9500ms to 1ms
Machine: esp32 c6, latest firmware (did encountered this on S3 before, when i gave up on Events :( )