Skip to content

Instantly share code, notes, and snippets.

@Tamakichi
Last active March 11, 2021 02:01
Show Gist options
  • Save Tamakichi/a9c5c66b5e12df019f767fd6bd82210e to your computer and use it in GitHub Desktop.
Save Tamakichi/a9c5c66b5e12df019f767fd6bd82210e to your computer and use it in GitHub Desktop.
Raspberry Pi Pico Lチカ用CMakeファイル
cmake_minimum_required(VERSION 3.13)
message("** LEDサンプルプログラム **")
# initialize the SDK based on PICO_SDK_PATH
# note: this must happen before project()
include(pico_sdk_import.cmake)
project(led)
# initialize the Raspberry Pi Pico SDK
pico_sdk_init()
add_executable(led
led.c
)
# Pull in our pico_stdlib which pulls in commonly used features
target_link_libraries(led pico_stdlib)
# create map/bin/hex file etc.
pico_add_extra_outputs(led)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment