Project structure
All MicroPython projects must include amain.py file. MicroPython will automatically load and execute the code from main.py when you start the simulation.
Wokwi copies all the project files into the Pico’s flash filesystem. This means your project can include additional Python modules and you can import them from main.py or from the interactive REPL. Your project can also include custom data inside text files.
You can get a list of all the files in the flash filesystem by running:
MicroPython REPL
When the code inmain.py terminates (or you interrupt it with Ctrl+C), you’ll get into the MicroPython REPL. The REPL is an interactive prompt where you can type python commands and see the results immediately.
Project examples
Blink with MicroPython
Simple LED blinking example
MicroPython 7-Segment Display
Control a 7-segment display with MicroPython