www.pudn.com > C51_PCF8591_LCD5110.rar > 5110.h, change:2015-06-24,size:625b


 
#ifndef _5110_H_ 
#define _5110_H_ 
 
 
 
 
sbit    sce = P1^1;  //片选 
sbit    res = P1^0;  //复位,0复位 
sbit    dc  = P1^2;  //1写数据,0写指令 
sbit    sdin = P1^3;  //数据 
sbit    sclk = P1^4;  //时钟	 
/*sbit LCD_CS= P1^1;  //片选 
sbit LCD_RST= P1^0;  //复位,0复位 
sbit LCD_DC= P1^2;  //1写数据,0写指令 
sbit LCD_DIN = P1^3;  //数据 
sbit LCD_CLK = P1^4;  //时钟 */ 
 
void LCD_write_shu(unsigned char row, unsigned char page,unsigned char c); 
 
void LCD_write_hanzi(unsigned char row, unsigned char page,unsigned char c); 
 
void LCD_init(); 
 
void LCD_clear(); 
 
 
//函数前面要加void否则不通过; 
 
 
#endif