Skip to content

nemuibanila/zig-pico-cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Set up the pico-sdk as described in the Getting Started guide and set the PICO_SDK_PATH environment variable. Then run zig build. A firmware.uf2 should appear in the zig-out.

The current configuration is for the Pico W and this is basically the Pico W blink example. You can set -DPICO_BOARD at the top of build.zig.

Like in the C Version, you need to adjust the linked libraries in the CMakeLists.txt.

To build this example with the regular non-W Pico, remove the pico_cyw43_arch_none library from CMakeLists and rewrite main.zig to not use the W-specific cyw43 functions.

About

Build zig projects that use the Raspberry PI Pico SDK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published