Chinaunix首页 | 论坛 | 博客
  • 博客访问: 140481
  • 博文数量: 27
  • 博客积分: 1405
  • 博客等级: 上尉
  • 技术积分: 362
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-10 15:48
文章存档

2013年(3)

2011年(1)

2010年(1)

2008年(22)

我的朋友

分类:

2008-10-14 09:57:13

#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) |
0

上一篇:ILI9225初始化

下一篇:NT39116初始化

给主人留下些什么吧!~~

chinaunix网友2009-03-30 11:07:38

有没有IC的资料。能发给我吗?tanxing.1234@163.com