Hardware timer issue with ESP32

The bug is the same in 2.0.0-Alpha1 and the code in master also looks the same. I’ll open an issue about this.

I really don’t know how the Arduino IDE did compile that succesfully…

In the meantime, add

delayMicroseconds(0);

between the timerAlarmWrite() and timerAlarmEnable() calls in setup() to work-around the problem.

EDIT: Above only works for the standard 1.0.6 version, not when using alpha1 or latest master version of the core.