Function onboard_computer::application::run_uart
source · fn run_uart(uart: Uart<'static, UART1>) -> SpawnToken<impl Sized>
Expand description
Exercise: Receive battery percentage over UART from the power-system
- create an infinite loop that
- tries to read the Battery Percentage value sent from the Power System,
- prints the value on success or the error on failure (using Debug formatting),
- Repeat the read every 20 milliseconds