基于单片机和TLC1543气体浓度采集仪器
【资源下载】下载地址如下1395:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl
#include <reg52.h> #include "MICRO.h" #include "LCD1602.h" #include "TLC1543.h" sbit f=P1^7; double m; int nong_h=120; void main() { double volt; RW_1602 = 0; LCD1602_Init(); // LCD1602上电初使化 draw1602_basic(); TLC1543_init(); while(1) { void alert(); volt = ReadADC_TLC1543(0); m= 125-125*volt/4096; write1602_DDRAM_pos(5,1); write1602_byte((int)(m/100)+0x30,1); write1602_byte((int)(