新闻| 论坛| 博客| 在线研讨会
Zigbee基础实验(5)—LCD的基本使用方法
luker| 2016-02-25 14:19:11 阅读:1313 发布文章

通过本实验可LCD上显示文字。

源代码:
#include
#include "LCD.h" //LCD显示屏头文件
void main()
{
uchar *pstr = "0123456789";
P0DIR = 0XFF;
P1DIR = 0XFF;

ResetLCD();
initLCDM();
ClearRAM();

delay_us(100);
Print8(0,0,pstr);
Print8(8,1,pstr);
Print8(16,2,pstr);
Print8(24,3,pstr);

Print8(20,4,pstr);
Print8(16,5,pstr);
Print8(12,6,pstr);
Print8(0,7,"01234567890123456789012");
}

实验总结:
这次的实验非常简单,只要声明LCD的头文件即可。头文件内有所需的函数供直接调用。

*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。

参与讨论
登录后参与讨论
推荐文章
最近访客