📄 18b20.c
字号:
#include <AT89X51.H>
#include "PCCOM.H"
#include "18B20.h"
//----------main----------------------------
void main(void)
{ unsigned int i;
//float Tdata;
Init_Pccom();
printf("this is the test of 18B20!\n");
printf("now reset\n");
printf("reset ok!\n");
printf("read the temperature:\n");
printf("the T is:\n");
for(i=0;i<300;i++)
{
/*Tdata=ReadTemperature();printf("%f\n",Tdata);*/
disp_18b20_pccom();
printf("\n");
delay_temp(40000);
}
for(;;);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -