From 0f74f870b00942a3020a32d44470edf80870676c Mon Sep 17 00:00:00 2001 From: Mathias Date: Thu, 18 Aug 2022 11:47:15 +0200 Subject: Fix rp uart example --- examples/rp/src/bin/uart.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/rp/src/bin') diff --git a/examples/rp/src/bin/uart.rs b/examples/rp/src/bin/uart.rs index 0d2954894..b7014c55a 100644 --- a/examples/rp/src/bin/uart.rs +++ b/examples/rp/src/bin/uart.rs @@ -9,11 +9,11 @@ use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner, p: Peripherals) { let config = uart::Config::default(); - let mut uart = uart::Uart::new(p.UART0, p.PIN_0, p.PIN_1, p.PIN_2, p.PIN_3, config); - uart.send("Hello World!\r\n".as_bytes()); + let mut uart = uart::Uart::new_with_rtscts(p.UART0, p.PIN_0, p.PIN_1, p.PIN_2, p.PIN_3, config); + uart.blocking_write("Hello World!\r\n".as_bytes()).unwrap(); loop { - uart.send("hello there!\r\n".as_bytes()); + uart.blocking_write("hello there!\r\n".as_bytes()).unwrap(); cortex_m::asm::delay(1_000_000); } } -- cgit