raspberrypi / pico-vscode

The official VS Code extension for Raspberry Pi Pico development. It includes several features to simplify project creation and deployment.
https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico
Mozilla Public License 2.0
131 stars 16 forks source link

Board Switch doesn't work if importing official pico_examples #113

Closed B3rn475 closed 3 weeks ago

B3rn475 commented 3 weeks ago

Steps:

  1. Git clone the official https://github.com/raspberrypi/pico-examples.git repository
  2. Import the repository with the VS Code extension
  3. Switch board to pico_w
  4. Compile

Expected Result: /pico_w/... examples compile

Actual Result: /pico_w/... are skipped, because the board type is still pico and not pico_w.

will-v-pi commented 3 weeks ago

Yes, that’s because pico-examples doesn’t have a set(PICO_BOARD… line in the CMakeLists.txt - see #46