pimoroni-pico/examples/servo2040/servo2040_read_sensors.cmake

17 lines
440 B
CMake
Raw Normal View History

2022-03-25 23:44:02 +00:00
set(OUTPUT_NAME servo2040_read_sensors)
add_executable(${OUTPUT_NAME} servo2040_read_sensors.cpp)
target_link_libraries(${OUTPUT_NAME}
pico_stdlib
servo2040
analogmux
analog
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})