s3c2440的LCD字符显示(10)
发布时间:2021-06-06
发布时间:2021-06-06
rLCDSADDR2=M5D( ((U32)LCD_BUFFER+(LCD_WIDTH*LCD_HEIGHT*4))>>1 );
rLCDSADDR3=LCD_WIDTH*4/2;
rLCDINTMSK|=(3); // MASK LCD Sub Interrupt
rTCONSEL = 0; // Disable LPC3480
rGPGUP=rGPGUP&(~(1<<4))|(1<<4); // Pull-up disable
rGPGCON=rGPGCON&(~(3<<8))|(3<<8); //GPG4=LCD_PWREN
rGPGDAT = rGPGDAT | (1<<4) ;
rLCDCON5=rLCDCON5&(~(1<<3))|(1<<3); // PWREN
rLCDCON5=rLCDCON5&(~(1<<5))|(0<<5); // INVPWREN }
void Main(void) {
LCD_Init();
rLCDCON1|=1; //开启LCD显示
Brush_Background(0xFFFFFF); //绘制白色背景
//绘制黑色字符
下一篇:工作证明范本