One way around the problem of getting a fast response from a microcontroller is to move the problem away from the processor. In the case of the ESP32 there are some built-in devices that can use GPIO ...
The Arduino library is easy to use, but it doesn’t deliver the full potential of any hardware it runs on because of compromises it makes in order to run on a wide range of hardware. Versions of the ...