智能车制作

标题: protues NOKIA 1100的仿真资料 [打印本页]

作者: zhen    时间: 2012-8-18 09:21
标题: protues NOKIA 1100的仿真资料
protues NOKIA 1100的仿真资料

代码过长发一部分,看看有需要的吗

/*-----------------------------------------------------*/

/*-F--NOKIA1100 display image;

/*-M--Debug_*p--- "image[][]";

/*-----------------------------------------------------*/

//void Lcd1100_display_image(uint16 *s)



/*-----------------------------------------------------*/

/*-F--NOKIA1100 linedraw ;

/*-M--Debug_*p--- "image[][]";

/*-----------------------------------------------------*/


/*-----------------------------------------------------*/

/*-F--NOKIA1100 initialization;

/*-----------------------------------------------------*/

void Init_lcd1100(void)


{

RST = 0;

_delay_ms(100);            // 5mS so says the stop watch(less than 5ms will not work)

RST = 1;

Lcd1100_write_byte(CMD,0x20); // write VOP register

Lcd1100_write_byte(CMD,0x90);

Lcd1100_write_byte(CMD,0xA4); // all on/normal display

Lcd1100_write_byte(CMD,0x2F); // Power control set(charge pump on/off)

Lcd1100_write_byte(CMD,0x40); // set start row address = 0

Lcd1100_write_byte(CMD,0xB0); // set Y-address = 0

Lcd1100_write_byte(CMD,0x10); // set X-address, upper 3 bits

Lcd1100_write_byte(CMD,0x00);  // set X-address, lower 4 bits

Lcd1100_write_byte(CMD,0xC0); // NO mirror Y axis (about X axis)

Lcd1100_write_byte(CMD,0xA0); // NO Invert screen in horizontal axis

Lcd1100_write_byte(CMD,0xAC); // set initial row (R0) of the display

Lcd1100_write_byte(CMD,0x00);

Lcd1100_write_byte(CMD,0xAF); // display ON/OFF

Lcd1100_clear(); // clear LCD

Lcd1100_write_byte(CMD,0xA6); // normal display (non inverted)

_delay_ms(10);


}


仿真源码下载:protues nokia1100仿真代码

http://yunfile.com/file/zhengoogle/e6c87878/




作者: 再见蔚蓝海岸    时间: 2012-8-19 19:26
看不懂?有深度
作者: 夜之音    时间: 2012-8-19 21:16
LZ我顶你顶的不行不行滴!!!很好很好!!!!
作者: c164811818    时间: 2012-8-20 12:25
帅!




欢迎光临 智能车制作 (http://111.231.132.190/) Powered by Discuz! X3.2