uint16_t usR;
ILI9341_Init();
Usart_Config();
ILI9341_Write_Cmd ( 0x0c );
ILI9341_Read_Data ();
usR = ILI9341_Read_Data ();
printf("we can have 0x%x",usR);
输出结果是
we can have 0x6
然后调换初始化顺序
uint16_t usR;
Usart_Config();
ILI9341_Init();
ILI9341_Write_Cmd ( 0x0c );
ILI9341_Read_Data ();
usR = ILI9341_Read_Data ();
printf("we can have 0x%x",usR);
输出结果是
we can have 0x0