Learn how to use an to control an LED’s state with each press. This MicroPython tutorial demonstrates how to toggle between ON/OFF using state tracking.
Tag: toggle LED
Reading Button Inputs with ESP32 Button Input and MicroPython
Learn how to read ESP32 button input with MicroPython. In this simple example, control an LED (connected to pin 21) with a button press using pin 15 on the ESP32.