An open API service indexing awesome lists of open source software.

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

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
```