init converting project from micro python to c

This commit is contained in:
Travis Shears 2025-04-06 12:55:40 +02:00
parent 4edd5b1cc2
commit 512e041717
32 changed files with 372 additions and 21 deletions

30
CmakeLists.txt Normal file
View file

@ -0,0 +1,30 @@
# What CMake to start at
cmake_minimum_required( VERSION 3.31 )
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
#set(PICO_BOARD pico CACHE STRING "Board type")
# Pull in SDK (must be before project)
include( pico_sdk_import.cmake )
# Set the name and version of the project
project(test C CXX ASM)
# project(test VERSION 1.0.0 )
# Initialize the SDK
pico_sdk_init()
# the executable
add_executable( node1 node1.c )
pico_set_program_version(node1 "0.1")
pico_set_program_name(node1 "node_one")
# pull in common dependencies
target_link_libraries( node1 pico_stdlib )
# create map/bin/hex file etc.
pico_add_extra_outputs( node1 )