pub fn write_bytes(&mut self, data: &[u8]) -> Result<usize, Error> {
        let count = data.len();

        data.iter()
            .try_for_each(|c| nb::block!(self.write_byte(*c)))?;

        Ok(count)
    }
Write one or more byte to the UART, blocking until the write has
completed.
esp-lp-hal/src/uart.rs