Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4950

Beginners • Adding pico-extras library to VS Code

$
0
0
I'm trying to migrate one of my Pico projects from the Arduino IDE to VS Code (MacOS). I can no longer use the Arduino libraries so I want to use the C++ audio_i2s library that is in pico-extras. I've tried following the instructions at the end of the Git page with no luck. Can someone offer a step-by-step to using the pico-extras library in VS Code.

I have the pico-extras (downloaded from Git) folder unzipped into my project folder and copied pico_extras_import.cmake to the root of the project folder. I've added the following to my CMakeLists.txt:

Code:

# We also need PICO EXTRASinclude(pico_extras_import.cmake)
My main project file has #include <pico/audio_i2s.h> but it is still unrecognised.

Statistics: Posted by StarryPied — Tue Dec 03, 2024 9:42 am — Replies 0 — Views 15



Viewing all articles
Browse latest Browse all 4950

Trending Articles