野火开发板lcd程序:
u16 LCD_RD_data(void)
{
u16 R=0, G=0, B=0 ;
LCD_ILI9341_CMD(0x2e); /*LCD GRAM READ COMMAND--DATASHEET PAGE116*/
R =(*(__IO u16 *) (Bank1_LCD_D)); /*FIRST READ OUT DUMMY DATA*/
R =(*(__IO u16 *) (Bank1_LCD_D)); /*READ OUT RED DATA */
B =(*(__IO u16 *) (Bank1_LCD_D)); /*READ OUT BLACK DATA*/
G =(*(__IO u16 *) (Bank1_LCD_D)); /*READ OUT GREEN DATA*/