kopia lustrzana https://github.com/pimoroni/pimoroni-pico
15 wiersze
403 B
CMake
15 wiersze
403 B
CMake
set(OUTPUT_NAME servo2040_servo_wave)
|
|
add_executable(${OUTPUT_NAME} servo2040_servo_wave.cpp)
|
|
|
|
target_link_libraries(${OUTPUT_NAME}
|
|
pico_stdlib
|
|
servo2040
|
|
button
|
|
)
|
|
|
|
# enable usb output, disable uart output (so it doesn't confuse any connected servos)
|
|
pico_enable_stdio_usb(${OUTPUT_NAME} 1)
|
|
pico_enable_stdio_uart(${OUTPUT_NAME} 0)
|
|
|
|
pico_add_extra_outputs(${OUTPUT_NAME})
|