Project structure
CircuitPython projects must include acode.py file. The code in this file will execute when you start the simulation.
Wokwi copies all the project files into the Pico’s flash file system. This means your project can include additional Python modules and you can import them from code.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:
Using libraries
You can use any library from the Adafruit CircuitPython Bundle. Create a “requirements.txt” file in your project, and write the names of the libraries that you use, one per line. Lines that start with ”#” are comments. For example, if you want to install both adafruit_display_text and adafruit_dht, create a “requirements.txt” file with the following content:CircuitPython REPL
When the code incode.py terminates (or you interrupt it with Ctrl+C), you’ll get into the CircuitPython REPL. The REPL is an interactive prompt where you can type python commands and see the results immediately.
Project examples
Blink with CircuitPython
Simple LED blinking example
CircuitPython SSD1306 Example
Display text on an OLED screen