#include "system.h"
#include "altera_avalon_pio_regs.h"
#include "alt_types.h"
#include "LCD.h"
int NT39115_init(void){
LCD_WRITE_CMD(0x0001);
Delayms(5);
LCD_WRITE_CMD(0x0011);
Delayms(120);
LCD_WRITE_CMD(0x00DE);LCD_WRITE_DATA(0x00AA);
LCD_WRITE_DATA(0x0055);
LCD_WRITE_DATA(0x0015);
LCD_WRITE_CMD(0x00C2);LCD_WRITE_DATA(0x0000);
LCD_WRITE_DATA(0x0004);
LCD_WRITE_CMD(0x00C0);LCD_WRITE_DATA(0x0003);
LCD_WRITE_CMD(0x00C3);LCD_WRITE_DATA(0x0000);
LCD_WRITE_DATA(0x0007);
LCD_WRITE_CMD(0x00C4);LCD_WRITE_DATA(0x0000);
LCD_WRITE_DATA(0x0004);
LCD_WRITE_CMD(0x00C5);LCD_WRITE_DATA(0x002A);
LCD_WRITE_DATA(0x0027);
LCD_WRITE_CMD(0x00C7);LCD_WRITE_DATA(0x00C9);
LCD_WRITE_CMD(0x00C9);LCD_WRITE_DATA(0x0008);
LCD_WRITE_CMD(0x00B1);LCD_WRITE_DATA(0x000C);
LCD_WRITE_DATA(0x0004);
LCD_WRITE_CMD(0x00B4);LCD_WRITE_DATA(0x0000);
LCD_WRITE_CMD(0x00F3);LCD_WRITE_DATA(0x0002);
LCD_WRITE_CMD(0x00F9);LCD_WRITE_DATA(0x0008);
LCD_WRITE_DATA(0x0019);
LCD_WRITE_CMD(0x00E0);LCD_WRITE_DATA(0x0020);
LCD_WRITE_DATA(0x0063);
LCD_WRITE_DATA(0x0071);
LCD_WRITE_DATA(0x0000);
LCD_WRITE_DATA(0x0080);
LCD_WRITE_DATA(0x0005);
LCD_WRITE_DATA(0x0006);
LCD_WRITE_DATA(0x0094);
LCD_WRITE_CMD(0x00E1);LCD_WRITE_DATA(0x0056);
LCD_WRITE_DATA(0x0033);
LCD_WRITE_DATA(0x0076);
LCD_WRITE_DATA(0x0006);
LCD_WRITE_DATA(0x00E9);
LCD_WRITE_DATA(0x0004);
LCD_WRITE_DATA(0x0000);
LCD_WRITE_DATA(0x001F);
LCD_WRITE_CMD(0x003A);LCD_WRITE_DATA(0x0005);
LCD_WRITE_CMD(0x002C);
LCD_WRITE_CMD(0x0029);
}
阅读(1718) | 评论(1) | 转发(0) |