1. 在main函数前面添加:

int fputc(int ch,FILE *f)
{
uint8_t temp[1]={ch};
HAL_UART_Transmit(&huart1,temp,1,2);
return(ch);
}

 

2. USE Micro Lib

相关文章:

  • 2021-06-05
  • 2021-11-17
  • 2021-11-21
  • 2021-09-22
  • 2021-12-02
  • 2021-05-18
  • 2022-12-23
  • 2021-08-07
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-08-23
  • 2021-12-18
  • 2021-11-17
  • 2021-11-22
  • 2022-12-23
相关资源
相似解决方案