What this Pico can and cannot do
This page is the honest boundary of the platform. Everything listed as working has a problem or a lesson that uses it; everything listed as not there is missing on purpose, not a bug you can code around.
The short version: one Pico, 3.3 V, real MicroPython, no network. If your design fits that, it will run.
Working — the exact list
| Area | What works | The exact API | Watch out for |
|---|---|---|---|
| GPIO | GP0–GP22, GP26–GP28; inputs, outputs, pulls | Pin(n, Pin.OUT), Pin.IN, PULL_UP, PULL_DOWN, value(), on(), off(), toggle() | 3.3 V only; GP23–25 are not header pins |
| On-board LED | GP25, drawn on the board | Pin(25, Pin.OUT) | No wire, no header pin |
| PWM | Any GPIO; duty and frequency | PWM(Pin(n), freq=…), duty_u16(0–65535), duty_ns(…), deinit() | Duty is not a percentage; 65535 is full |
| ADC | GP26, GP27, GP28; 12-bit | ADC(26), ADC(0)–ADC(2); ADC(4) internal temperature; read(), read_u16() | 0–3.3 V only; other pins raise an error |
| I²C | Any SDA/SCL pair; scan, read, write, registers | I2C(0, sda=Pin(4), scl=Pin(5)), scan(), writeto, readfrom, writeto_mem, readfrom_mem | 8-bit register addresses; 7-bit device addresses |
| SPI | Any SCK/MOSI/MISO pins; write, read, exchange | SPI(0, baudrate=…, sck=…, mosi=…, miso=…), write, read, write_readinto | Chip select is a plain output pin you drive |
| UART | Any TX/RX pair; buffered input | UART(0, baudrate=…, tx=…, rx=…), write, any, read, readline, readinto | The other device must use the same baud |
| Timers | Periodic and one-shot callbacks | Timer(), init(period=…, mode=Timer.PERIODIC, callback=…), deinit() | Cooperative: runs in short slices during a sleep, not while a loop never sleeps |
| Pin interrupts | Rising/falling edge callback | pin.irq(trigger=Pin.IRQ_RISING | Pin.IRQ_FALLING, handler=…); irq.on()/off() | Cooperative: checked during sleeps; a pulse shorter than the slice can be missed |
| Signal | Inverted/logical output wrapper | Signal(pin, invert=True), on(), off(), value() | Output only; use Pin.irq() for edges |
| OLED | SSD1306, 128×64, I²C at 0x3C | from ssd1306 import SSD1306_I2C; fill, text, show() | Frozen driver; still an I²C device at 0x3C |
| Time | Sleeps, tick counters and wall time | utime.sleep, sleep_ms, sleep_us, ticks_ms, ticks_us, ticks_diff, time.time() | Simulated time; time.time() starts at 2024-01-01 UTC; ticks wrap |
| Board identity | Frequency, unique id, reset | machine.freq(), machine.unique_id(), machine.reset() | reset() starts the run again; files do not persist |
| Language | The Python you need for the course | variables, if, while, for, functions, lists, tuples, dicts, classes, print, input() | No pip, no network installs |
| Frozen modules | The classroom sensor and display modules | neopixel, dht.DHT11/DHT22, ssd1306.SSD1306_I2C | Same imports as a real Pico; no extra install |
Electrical limits
These are the numbers the simulator enforces, taken from the RP2040 and Pico datasheets:
| Limit | Value | What happens if you cross it |
|---|---|---|
| Logic high | 3.3 V | — |
| GPIO absolute maximum | 3.6 V | 5 V on a GPIO damages the pin |
| Input low / high | below 0.8 V / above 2.0 V | In between is undefined; do not design there |
| Current per GPIO | 12 mA safe (50 mA damage threshold) | The pin warns, then damages |
| Current through the chip | 50 mA total | The 3V3 rail warns and sags |
| 3V3(OUT) budget | 300 mA | The rail cannot power a heavy load |
| ADC range | 0–3.3 V, 12 bits | Above 3.3 V can damage the ADC pin |
| PWM duty | 0–65535, or nanoseconds | Out-of-range values clamp or misbehave |
The one rule that prevents most damage: a GPIO goes to 3V3, GND, a resistor, or a part that expects 3.3 V. It never goes to 5 V, and it never goes straight to GND while it is high.
Not there — and what to do instead
| Not available | Why | Do this instead |
|---|---|---|
| Wi-Fi and Bluetooth | This is a plain Pico, not a Pico W | Keep the data on the board; print it or show it on the OLED |
| PIO | The programmable I/O state machines are not modelled | Use SPI, I²C or UART — they cover the same devices |
| USB devices | Outside the simulated board | Use the serial monitor to talk to the program |
| The hardware watchdog | Outside the simulated board | Use a timer and a state variable to recover in software |
| Files that survive a run | There is no flash on the simulated board | Keep values in variables; print results; download your source |
adafruit_… and CircuitPython libraries | There is no package store for the Pico | Use machine, framebuf, and the frozen neopixel, dht and ssd1306 modules |
rp2 PIO and network | The RP2040 PIO and Wi-Fi stack are not modelled | Importing them raises a clear RuntimeError; use SPI/I²C/UART, and keep data on the board |
| A large Python standard library | statistics, datetime, string, csv, turtle and packages are not installed | Use the core language and the modules listed above; console problems stick to those basics |
asyncio.run | The browser scheduler is driven by create_task() and await | asyncio.run raises a clear RuntimeError; use create_task() and await |
A desktop sys.platform | This is the webassembly MicroPython port | sys.platform is webassembly; os.uname() reports the simulated Pico identity |
| 16-bit I²C register addresses | The simulated devices use 8-bit pointers | Use 8-bit registers, or split the address yourself |
| A second board | One Pico per project | Put both devices on the same bus/pins |
| Real mains electricity | Not modelled, and never safe in a classroom project | Switch a low-voltage lamp, fan or pump through a relay module |
Fun fact. “Not there yet” is a design decision, not a score. A simulator that pretends to have Wi-Fi teaches you to debug a network you cannot see. A simulator that says “no Wi-Fi” teaches you to solve the problem with the parts you have.
Deliberate differences from a real Pico
These are the places where the app is like a Pico but not identical. They matter for the lessons, and they matter if you carry a project to real hardware.
Timing is simulated
The CPU reports 133 MHz, but the program runs at your browser's speed. utime.sleep is the clock you can trust; instruction counting is not. A judged run can fast-forward through long sleeps, so a program that waits ten seconds finishes quickly in the judge. time.time() uses the simulated clock and a fixed 2024-01-01 UTC epoch, so two runs of the same program produce the same date and time.
Timer and pin-interrupt callbacks are cooperative
On a real Pico, a timer callback interrupts the main program. Here, the firmware advances a sleep in 5 ms slices and runs callbacks between them. This keeps the simulation deterministic and reproducible while letting a 100 ms timer fire ten times during a one-second sleep.
Consequences:
- a main loop that never sleeps never lets a timer tick;
- a timer fires close to its requested period during sleeps (within one 5 ms slice);
- a pin IRQ checks the pin at each tick, so a very short pulse can be missed;
utime.sleep_ms(10)in a main loop is the usual, safe pattern;- in a judged run, timers and IRQs left running after
main.pyexits keep running to the end of the window.
There is no flash
The editor's files exist for the run. Values you keep in variables disappear when the run ends, and nothing survives Stop or machine.reset(). Download the sources if you want to keep them.
The board starts high-impedance
Unlike a Raspberry Pi, no GPIO reads high at reset. An input with no pull and no driver is floating: its value is undefined. This is the real Pico's behaviour, and it is the reason every button lesson starts with a pull-up or pull-down.
The simulated parts are ideal — mostly
Resistors have tolerance, LEDs have a forward voltage, servos have a dead band, and buttons bounce for a few milliseconds. But parts do not age, wires do not have resistance, and the room temperature does not change. When a check fails by a tiny amount, look for a real bug before blaming the parts.
Designing inside the box
Use this checklist before you start a project:
- Power: does every part have VCC and GND? Is the total under the rail's budget?
- Voltage: is every signal 3.3 V? Does anything need a driver (relay, MOSFET, H-bridge)?
- Pins: does the part need a special pin (ADC on 26–28, I²C/SPI/UART on any pins)?
- Timing: does the program sleep? Does a timer or signal need to run while it sleeps?
- State: what does the program remember between presses? What are the states?
- Output: how will you know it worked — an LED, the OLED, a printed line, a check?
If a requirement needs something in the “not there” table, change the requirement, not the simulator. That is what engineers do with real boards too.
See also
- The pinout — every header pin and its alternate functions.
- The machine reference — the API in one page.
- The course — where each capability is taught.
- Word bank — the vocabulary.