- Name: Peter Kapsiar
- Student ID: 5486866
- Repository: https://github.com/pop9459/P3-EmbeddedSystems/
This repository contains multiple MicroPython subprojects for Raspberry Pi Pico.
Each subproject should contain its own main.py that is uploaded to the Pico.
From the workspace root:
source .venv/bin/activateTo leave the environment:
deactivatepyserial is useful (and often required) when you use Python-based serial tools from the terminal.
- If you work only with the MicroPico VS Code extension,
pyserialis usually not required. - If you use serial tooling (for example
mpremote, custom scripts, orserial.tools.*), install it in the venv.
Install/check:
pip install pyserial
pip show pyserialThese are MicroPython projects, so code runs on the Pico board (not directly on your PC Python).
- Connect your Pico via USB.
- Open the subproject folder you want to run (example:
BlinkWithExternalHardwareReset). - Open that subproject's
main.py. - Use the Command Palette (
Ctrl+Shift+P):MicroPico: Upload current file to Pico(or upload the whole project).
When main.py is on the board, it starts automatically after reset/power-on.
If you use another tool/REPL, run the selected subproject's main.py directly on the Pico.
- Ensure MicroPython firmware is installed on the Pico.
- AnalogJoystick and DinoCheater projects require circuitpython instead of micropython firmware.