Arduino core for ESP32 Wiki content

analogRead() triggers unrelated interrupt

When using analogRead() and interrupts on on GPIO inputs with internal pullup e.g. pinMode(BUTTON_1, INPUT_PULLUP) unexpected interrupts can happen when analogRead() is called.

Workaround

Use internal pulldown to avoid the problem e.g. pinMode(BUTTON_1, INPUT_PULLDOWN);