Breadboard
docs
Example project · Microcontrollers

ESP32-C6 blink

A real emulated ESP32-C6 (single RISC-V RV32IMAC at 160 MHz, Rust→WASM) booting genuine MicroPython and blinking the LED on G2. The blink code lives in the Code tab; edit it and run it again.

The ESP32-C6 blink circuit as rendered by the simulator

What's on the bench

  • Battery
  • ESP32-C6
  • LED
  • Resistor

The code

This MicroPython script runs on the emulated board every boot; edit it in the Code tab.

from machine import Pin
import time
print('blinking G2 from MicroPython')
led = Pin(2, Pin.OUT)
for n in range(500):
    led.value(n % 2)
    time.sleep_ms(250)
print('blink done')