单片机时钟程序(9)lcd1602.h

来源:互联网 发布:苹果手机怎么抹除数据 编辑:程序博客网 时间:2024/05/18 00:10
#ifndef __LCD1602_H
#define __LCD1602_H


#include <reg52.h>


#define LCD1602_DB  P0
sbit LCD1602_RS = P2^6;
sbit LCD1602_RW = P2^5;
sbit LCD1602_E  = P2^7;


void InitLcd1602(void);
void LcdCloseCursor(void);
void LcdOpenCursor(void);
void LcdShowStr(unsigned char x, unsigned char y, unsigned char *str);
void LcdSetCursor(unsigned char x, unsigned char y);
void LcdShowBCD(u8 x,u8 y,u8 bcd);
void LcdShowChar(u8 x,u8 y,u8 chr);
void LcdClear(void);
#endif
原创粉丝点击