ATmega单片机实现温湿度shtxx、sht11、sht75.docVIP

  • 11
  • 0
  • 约1.65万字
  • 发布于江苏
  • 举报
  • 文档已下架,其它文档更精彩

ATmega单片机实现温湿度shtxx、sht11、sht75.doc

#include iom128v.h //包含型号头文件 #include macros.h //包含位操作头文件 #include LCD1602.H //包含1602液晶函数文件 #include math.h //Keil library #include stdio.h //Keil library #define uchar unsigned char #define uint unsigned int #define BIT(X) (1 X) const float C1=-4.0; // for 12 Bit const float C2=+0.0405; // for 12 Bit const float C3=-0.0000028; // for 12 Bit const float T1=+0.01; // for 14 Bit @ 5V const float T2=+0.00008; // for 14 Bit @ 5V unsigned char cwendu1,cwendu2; unsigned int uwendu,ushidu; float fwendu,fshidu; enum {T

文档评论(0)

1亿VIP精品文档

相关文档