Skip to content
Snippets Groups Projects
Commit dbd0e34d authored by ebp1g21's avatar ebp1g21
Browse files

Upload New File

parents
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.13)
# initialize the SDK based on PICO_SDK_PATH
# note: this must happen before project()
include(pico_sdk_import.cmake)
project(my_project)
# initialize the Raspberry Pi Pico SDK
pico_sdk_init()
# rest of your project
add_executable(main
solution.c # change this to stub if using the stub file
)
# Can't get this to work but doesn't really matter
#pico_generate_pio_header(main ${CMAKE_CURRENT_LIST_DIR}/ws2812.pio OUTPUT_DIR ${CMAKE_CURRENT_LIST_DIR})
# Add pico_stdlib library which aggregates commonly used features
target_link_libraries(main
pico_stdlib
hardware_pio
)
# create map/bin/hex/uf2 file in addition to ELF.
pico_add_extra_outputs(main)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment