From d4a1f6ed617d24a0f6e76c49e9649d5ce134bdb8 Mon Sep 17 00:00:00 2001 From: ZodiusInfuser Date: Fri, 25 Mar 2022 23:44:44 +0000 Subject: [PATCH] Disable uart on all examples to avoid confusing servos --- examples/servo2040/servo2040_led_rainbow.cmake | 3 ++- examples/servo2040/servo2040_multiple_servos.cmake | 3 ++- examples/servo2040/servo2040_servo_cluster.cmake | 3 ++- examples/servo2040/servo2040_servo_wave.cmake | 3 ++- examples/servo2040/servo2040_simple_easing.cmake | 3 ++- examples/servo2040/servo2040_single_servo.cmake | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/servo2040/servo2040_led_rainbow.cmake b/examples/servo2040/servo2040_led_rainbow.cmake index 523ceb01..0a298f02 100644 --- a/examples/servo2040/servo2040_led_rainbow.cmake +++ b/examples/servo2040/servo2040_led_rainbow.cmake @@ -7,7 +7,8 @@ target_link_libraries(${OUTPUT_NAME} button ) -# enable usb output +# 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}) diff --git a/examples/servo2040/servo2040_multiple_servos.cmake b/examples/servo2040/servo2040_multiple_servos.cmake index 85d5e115..372ef406 100644 --- a/examples/servo2040/servo2040_multiple_servos.cmake +++ b/examples/servo2040/servo2040_multiple_servos.cmake @@ -6,7 +6,8 @@ target_link_libraries(${OUTPUT_NAME} servo2040 ) -# enable usb output +# 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}) diff --git a/examples/servo2040/servo2040_servo_cluster.cmake b/examples/servo2040/servo2040_servo_cluster.cmake index 4c6f8dd5..aa789666 100644 --- a/examples/servo2040/servo2040_servo_cluster.cmake +++ b/examples/servo2040/servo2040_servo_cluster.cmake @@ -6,7 +6,8 @@ target_link_libraries(${OUTPUT_NAME} servo2040 ) -# enable usb output +# 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}) diff --git a/examples/servo2040/servo2040_servo_wave.cmake b/examples/servo2040/servo2040_servo_wave.cmake index f0309032..87647387 100644 --- a/examples/servo2040/servo2040_servo_wave.cmake +++ b/examples/servo2040/servo2040_servo_wave.cmake @@ -7,7 +7,8 @@ target_link_libraries(${OUTPUT_NAME} button ) -# enable usb output +# 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}) diff --git a/examples/servo2040/servo2040_simple_easing.cmake b/examples/servo2040/servo2040_simple_easing.cmake index a2eaedc8..928f417a 100644 --- a/examples/servo2040/servo2040_simple_easing.cmake +++ b/examples/servo2040/servo2040_simple_easing.cmake @@ -7,7 +7,8 @@ target_link_libraries(${OUTPUT_NAME} button ) -# enable usb output +# 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}) diff --git a/examples/servo2040/servo2040_single_servo.cmake b/examples/servo2040/servo2040_single_servo.cmake index aa3f5822..8a752f8b 100644 --- a/examples/servo2040/servo2040_single_servo.cmake +++ b/examples/servo2040/servo2040_single_servo.cmake @@ -6,7 +6,8 @@ target_link_libraries(${OUTPUT_NAME} servo2040 ) -# enable usb output +# 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})