Micropython Hello World | Micropython Helloworld Code | Helloworld In Micropython | Micropython Start Example | Micropython Beginner Code | Micropython Simple Script | Hello World Micropython | Start Micropython Helloworld | Pi Pico Blink Led | Blink Led Pi Pico | Pi Pico Led Blink Test | Led Blink On Pi Pico | Pi Pico Blink Led Issue | Blink Pi Pico Led | Pi Pico Led Blink Setup | Pico Led Blinking Help | ESP32 Micropython Led | ESP32 Micropython Led Help | Led With ESP32 Micropython | Micropython Led Control ESP32 | How To Use Led ESP32 Micropython | ESP32 Led Micropython Code | Led Project ESP32 Micropython | Micropython Led Example ESP32 | Micropython Led Blink | Micropython Blinking Led | Blink Led With Micropython | Led Blink Code Micropython | How Blink Led Micropython | Micropython Led Flash | Led Flashing Micropython Code | Blinkin Led Micrpython | Micropython Blink Led ESP32 | Blink Led ESP32 Micro | Micropython ESP32 Led Flash | ESP32 Blink Code Micropython | Led Blinking ESP32 Script | Flash Led ESP32 Micro | Micro ESP32 Led Blink | Blinkin Led ESP32 Code

MicroPython Open Kit Simulator ↗ All recipes
Tip: Ctrl+↵ to run
Python runs in your browser. Hit Run to execute — first run downloads the Python runtime (~10 MB), then it's instant. Note: GPIO calls won't actually toggle your Pi's pins from a browser. Use this to test logic, then run the .py on your Pi.

About this recipe

Pi Pico: Pin('LED', Pin.OUT)

Libraries / imports

machine time

Hardware / pins

GPIO2

Key API calls

sleep()

How to run

Press Run — executes in a Web Worker. Edits auto-save.
Editor python edits auto-save
Output ready
Output will appear here after you click Run.