Skip to content
UPEEC

MicroPython

A lean Python 3 for microcontrollers — ESP32, Raspberry Pi Pico, STM32.

Easy
Comments 0
from machine import Pin
import time
led = Pin("LED", Pin.OUT)
while True:
    led.toggle(); time.sleep(0.5)

Flash firmware, then edit with Thonny or mpremote.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.