文件名称:micro2440LCD裸机测试
文件大小:31.29MB
文件格式:RAR
更新时间:2017-04-07 16:26:55
micro2440 lcd s3c2440lcd
117 int main(void) 118 { 119 Lcd_Port_Init(); 120 Tft_Lcd_Init(); 121 Lcd_EnvidOn_Off(1); 122 //ClearScr(0xff0000); 123 //显示三基色 124 ClearScr((0x00<<11) | (0x00<5) | (0x00)); 125 delay(20000); 126 //red 127 ClearScr((0x1f<<11) | (0x00<<5) | (0x00)); 128 delay(20000); 129 //green 130 ClearScr((0x00<<11) | (0x3f<<5) | (0x00)); 131 delay(20000); 132 //blue 133 ClearScr((0x00<<11) | (0x00<<5) | (0x1f)); 134 delay(20000); 135 //clear screen white 136 ClearScr((0x1f<<11) | (0x3f<<5) | (0x1f)); 137 delay(20000); 138 139 Mire(); 140 delay(20000);