重寫這個函數,重定向printf函數到串口 /*fputc*/ int fputc(int c, FILE * f) { ch=c; HAL_UART_Transmit(&huart1,&ch,1,1000);//發送串口 return c; }.
確定! 回上一頁