-
-
0#include<reg52.h> #include<intrins.h> //包含头文件 #define uchar unsigned char #define uint unsigned int //宏定义 sbit key1=P2^1;//按键1 sbit wdcgq=P2^0;//ds18b20 sbit LCD_RS=P2^2; sbit LCD_RW=P2^3; sbit LCD_EN=P2^4; int wd=0; bit flag=0; int a=0; char TEMPSZ[]={8+'0',8+'0',8+'0','.',8+'0',8+'0','C'}; void Delay_1(uint j) //100us延时 { uchar i; for(;j>0;j--) { for(i=0;i<30;i++); } } bit lcd_busy() { bit result; LCD_RS = 0; LCD_RW = 1; LCD_EN = 1; _nop_(); _nop_(); _nop_(); _nop_(); result = (bit)(P1&0x80
-
2申请人:戰♤天晴 申请感言:积极认真负责
-
0亲爱的各位吧友:欢迎来到protuse