Skip to content

RoboticGen/pico-sdk-blink

 
 

Repository files navigation

Pico SDK Blink - Wokwi for VSCode

Blink example using the Pico SDK with Wokwi configuration

Building

mkdir -p build
cd build
cmake ..
make -j4

Simulation

To simulate this project, install Wokwi for VS Code. Open the project directory in Visual Studio Code, press F1 and select "Wokwi: Start Simulator".

Automated Testing

This project includes a Wokwi Automation Scenario in blink.test.yaml. The scenario runs the simulation for 1 second, and verifies that the LED is blinking. The scenario is run automatically on every commit, using wokwi-ci-action. You can also run the scenario locally, using the wokwi-cli tool:

export WOKWI_CLI_TOKEN={YOUR_TOKEN} ## rgen_api = wok_CTN8E95GoOcaC5Sfz2PVvtAWhvvuDS7v686210b0
wokwi-cli . --scenario blink.test.yaml --timeout 1000

About

Pico SDK Blink with Wokwi Simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 60.2%
  • Dockerfile 32.1%
  • C++ 7.7%