关于板子 屏和串口 调试信息打印的切换 操作
void LCD_DisplayStringLine(uint8_t Line, uint8_t *ptr)
{
#if 0
uint16_t refcolumn = LCD_PIXEL_WIDTH - 1;
/* Send the string character by character on lCD */
while ((*ptr != 0) & (((refcolumn + 1) & 0xFFFF) >= LCD_Currentfonts->Width))
{
/* Display one character on LCD */
LCD_DisplayChar(Line, refcolumn, *ptr);
putchar1(*ptr);
/* Decrement the column position by 16 */
refcolumn -= LCD_Currentfonts->Width;
/* Point on the next character */
ptr++;
}
#endif
printf("\n\r");
printf(ptr);
printf("\n\r");
}
找到这个函数 把if 0 改成 if 1 |