Chinaunix首页 | 论坛 | 博客
  • 博客访问: 306158
  • 博文数量: 65
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 284
  • 用 户 组: 普通用户
  • 注册时间: 2013-11-21 15:10
文章分类
文章存档

2016年(3)

2015年(51)

2014年(8)

2013年(3)

分类: C/C++

2015-06-02 08:42:10

/*
2007-2-1 12:06
nokia 5110 driver program for 51 mcu
by zl0801


zhaoliang0801@gmail.com


*/


#include


// pin define for n5110lcd_8key board
// change this if your hardware changed!


/*sbit SCLK = P0^5; // pin 2 header 5
sbit SDIN = P0^4; // pin 3 header 4
sbit LCD_DC = P0^3; // pin 4 header 3
sbit LCD_CE = P0^2; // pin 5 header 2
sbit LCD_RST = P0^1; // pin 9 header 1*/




void LCD_init(void);
void LCD_clear(void);
void LCD_move_chinese_string(unsigned char X, unsigned char Y, unsigned char T); 
void LCD_write_english_string(unsigned char X,unsigned char Y,char *s);
void LCD_write_chinese_string(unsigned char X, unsigned char Y,
                   unsigned char ch_with,unsigned char num,
                   unsigned char line,unsigned char row);
void chinese_string(unsigned char X, unsigned char Y, unsigned char T);                 
void LCD_write_char(unsigned char c);
void LCD_draw_bmp_pixel(unsigned char X,unsigned char Y,unsigned char *map,
                  unsigned char Pix_x,unsigned char Pix_y);
void LCD_write_byte(unsigned char dat, unsigned char dc);
void LCD_set_XY(unsigned char X, unsigned char Y);
void delay_1us(void);                 
 
阅读(2236) | 评论(0) | 转发(0) |
0

上一篇:HTML--申请表

下一篇:DHT11

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