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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user