已完成232串口通讯,液晶屏可以显示数字和字符,但不清楚如何将从232串口传来的数据传到液晶屏上,相应的主函数复制如下
int main ( void )
{
//char cStr [ 10 ];
//uint32_t ulCount;
uint8_t ch;
USART2_Config();
NVIC_Configuration();
printf("\r\n #0101\r\n");
LCD_Init ();
ILI9341_GramScan ( 1 );
ILI9341_Clear ( 0, 0, 240, 320, macBACKGROUND);
ILI9341_DispString_EN ( 0, 10, "This is a lcd demo to display ascii", macBACKGROUND, macRED );
ch = USART_ReceiveData(USART2);
ILI9341_DispChar_EN ( 60, 60, ch, macBACKGROUND, macRED );
while ( 1 ); }
液晶屏上显示"This is a lcd demo to display ascii",是不是说明我之前USART2_Config();
NVIC_Configuration();
printf("\r\n #0101\r\n");(这个是通讯协议)
这段代码可以通过,但是还是无法显示数据,求大神指导 |