https://github.com/wokwi/pico-sdk-blink
Pico SDK Blink with Wokwi Simulation
https://github.com/wokwi/pico-sdk-blink
Last synced: 10 months ago
JSON representation
Pico SDK Blink with Wokwi Simulation
- Host: GitHub
- URL: https://github.com/wokwi/pico-sdk-blink
- Owner: wokwi
- License: apache-2.0
- Created: 2022-12-06T09:46:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-06T12:29:54.000Z (over 2 years ago)
- Last Synced: 2025-01-16T14:51:23.840Z (11 months ago)
- Language: CMake
- Size: 14.6 KB
- Stars: 8
- Watchers: 3
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://marketplace.visualstudio.com/items?itemName=wokwi.wokwi-vscode). 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](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](https://github.com/wokwi/wokwi-ci-action). You can also run the scenario locally, using the [wokwi-cli](https://github.com/wokwi/wokwi-cli) tool:
```
wokwi-cli . --scenario blink.test.yaml --timeout 1000
```