Answer the question
In order to leave comments, you need to log in
Why doesn't it translate to a new line in the terminal via uart? How to clear the terminal?
I work for Proteus.
And how else to clear the terminal?
And \r works.
uint8_t tr[8];
for( int i=0;i<10;i++)
{
HAL_UART_Transmit(&huart1,(uint8_t*)"\n",3,100);
sprintf(tr,"%i",i);
HAL_UART_Transmit(&huart1,tr,3,100);
HAL_Delay(500);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question