Timers and interrupts simplify and optimize processes by eliminating the need for an infinite loop to check the state of a pin or to execute a delay.
This guide goes over basic input and output using GPIO pins on the ESP32 NodeMCU.
While doing any programming task, it is important to be working in an environment that will your maximize productivity. This guide will take you through setting up an environment for programming an ESP32 with MicroPython using an IDE called Thonny.