LpcUart: [#22] This could have worked.

* It appears that LPC11u68 has ony USART0 redirected to USB as debug UART.
* The code here was written only for USART1-4.
This commit is contained in:
RedHawk
2023-05-05 19:31:30 +03:00
parent 620439fff4
commit 13e392f37b
5 changed files with 124 additions and 6 deletions

View File

@@ -21,15 +21,19 @@ void Master::taskFunction() {
{
case ThreadCommon::RotaryAction::Right:
Board_LED_Set(ThreadCommon::RotaryAction::Right, LedState);
printf("Right\r\n");
break;
case ThreadCommon::RotaryAction::Left:
Board_LED_Set(ThreadCommon::RotaryAction::Left, LedState);
printf("Left\r\n");
break;
case ThreadCommon::RotaryAction::Press:
Board_LED_Set(ThreadCommon::RotaryAction::Press, LedState);
printf("Press\r\n");
break;
case ThreadCommon::RotaryAction::Idle:
Board_LED_Set(ThreadCommon::RotaryAction::Right, LedState);
printf("Idle\r\n");
break;
}
LedState = !LedState;