基于.12864与18B20的温度液晶显示.docx
《基于.12864与18B20的温度液晶显示.docx》由会员分享,可在线阅读,更多相关《基于.12864与18B20的温度液晶显示.docx(22页珍藏版)》请在优知文库上搜索。
1、基于12864及18B20的温度液晶显示#include#include#include#include#include*Definetheregistercommandcode*/#defineDisp_0n0x3f#defineDisp_Off0x3e#defineCol_Add0x40#definePage_Add0xb8#defineStart_LineOxcO#defineLcd_BusPO#defineucharunsignedchar#defineuintunsignedintuchartl,t2,t3,ser;*与单片机的单总线接口/*可变温度值/*温度正负标志sbitDS=P
2、22;*/uinttemp;*/ucharfIagl;*/sbitMcs=P37;sbitScs=P24;sbitEnable=P3*4;sbitDi=P35;sbitRW=P6;sbitLCCLRSt=P21;sbitDI0=P25;sbitDU=P26;sbitWE=P27;charcodeezk=0xF8,OXFC,0x04,0xC4,0x24,OXFC,0xF8,0x00,/-0-0x07,OxOF,0x09,0x08,0x08,OxOF,0x07,0x00,0x00,0x10,0x18,OxFC,OXFC,0x00,0x00,0x00,/-1-0x00,0x08,0x08,OxOF,
3、OxOF,0x08,0x08,0x00,0x08,OxOC,0x84,0xC4,0x64,0x3C,0x18,0x00,/2OxOE,OxOF,0x09,0x08,0x08,OxOC,OxOC,0x00,0x08,OxOC,0x44,0x44,0x44,OxFC,0xB8,0x00,/-3-0x04,OxOC,0x08,0x08,0x08,OxOF,0x07,0x00,OxCO,OxEO,OxBO,0x98,OxFC,OxFC,0x80,0x00,/-4-0x00,0x00,0x00,0x08,OxOF,OxOF,0x08,0x00,0x7C,0x7C,0x44,0x44,0xC4,0xC4,
4、0x84,0x00,/-5-0x04,OxOC,0x08,0x08,0x08,OxOF,0x07,0x00,OxFO,0xF8,0x4C,0x44,0x44,OxCO,0x80,0x00,/-6-0x07,OxOF,0x08,0x08,0x08,OxOF,0x07,0x00,OxOC,OxOC,0x04,0x84,0xC4,0x7C,0x3C,0x00,/70x00,0x00,OxOF,OxOF,0x00,0x00,0x00,0x00,0xB8,OxFC,0x44,0x44,0x44,OxFC,0xB8,0x00,/-8-0x07,OxOF,0x08,0x08,0x08,OxOF,0x07,0
5、x00,0x38,0x7C,0x44,0x44,0x44,OxFC,0xF8,0x00,/-9-0x00,0x08,0x08,0x08,OxOC,0x07,0x03,0x00,/*0x30,0x30已改为.*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x06,0x00,0x00,0x00,;ucharcodeFirstPageEJ二(0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x30,0x10,0x80,0x30,0x10,0x80,0xC8,OxBO,OxBO,0x76,0x
6、C8,0xE8,0x76,0x99,0x7C,0x7E,0x9F,0x79,0x7C,0x7E,0x79,0x3E,OxlC,0x09,0x37,0x13,0x09,OxOE,0x01,0x01,0x00,0x00,0x01,0x01,0x00,0x00,0x00,OxOO,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,OxOO,0x00,0x00,0x00,0x20,0x20,0x00,0x23,0x32,0x98,0x44,0x63,0x33,0x9C,0x23,0x75,OxCC,0x
7、03,0x25,0x34,OxlB,0x04,0x26,0x33,0x04,0x82,0x03,0x30,0x03,0x80,0x80,0x40,0x08,0x98,0x80,0x40,0x40,0x00,0x80,0x40,OxCO,0x00,0x00,0x00,0x80,0x80,OxCO,OxCO,OxOO,0x00,0x80,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,OxOO,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 12864 18 B20 温度 液晶显示