

With interrupts you don’t need to constantly check the current pin value. Interrupts are useful for making things happen automatically in microcontroller programs and can help solve timing problems.

Flashing MicroPython Firmware with esptool.py.Installing and getting started with Thonny IDE.We suggest using Thonny IDE or uP圜raft IDE: You also need an IDE to write and upload the code to your board. To follow this tutorial you need MicroPython firmware flashed in your ESP32 or ESP8266. You’ll also build a project example with a PIR Motion Sensor.

Learn how to configure and handle interrupts using MicroPython firmware with ESP32 and ESP8266 boards.
