Write an array of bytes to the USB host. ```no_run use teensycore::usb_serial::*; usb_serial_write(b"Hello, world!"); ```
(bytes: &[u8])
| 210 | /// usb_serial_write(b"Hello, world!"); |
| 211 | /// ``` |
| 212 | pub fn usb_serial_write(bytes: &[u8]) { |
| 213 | unsafe { |
| 214 | for byte in bytes { |
| 215 | TX_BUFFER_TRANSIENT.push(*byte); |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | usb_timer_oneshot(); |
| 220 | } |
| 221 | |
| 222 | /// This method will flush the current queue of data to |
| 223 | /// the usb host. It is invoked automatically based |
no test coverage detected