資源簡介
主控stc89c52RC芯片,讀取DHT11溫濕度傳感器并在LCD1602顯示
代碼片段和文件信息
#include?
#include??
//
typedef?unsigned?char??U8;
typedef?signed???char??S8;
typedef?unsigned?int???U16;
typedef?signed???int???S16;
typedef?unsigned?long??U32;
typedef?signed???long??S32;?
typedef?float??????????F32;?
typedef?double?????????F64;
U8??U8FLAG;
U8??U8countU8temp;
U8??U8T_data_HU8T_data_LU8RH_data_HU8RH_data_LU8checkdata;
U8??U8T_data_H_tempU8T_data_L_tempU8RH_data_H_tempU8RH_data_L_tempU8checkdata_temp;
U8??U8comdata;
bit?flag1s?=?0;??
U8?T0RH?=?0;
U8?T0RL?=?0;
U8?code?table[]={0x100x060x090x080x080x090x060x00};
extern?void?InitLcd1602();
extern?void?LcdWriteCmd(unsigned?char?cmd);
extern?void?LcdWriteDat(unsigned?char?dat);
extern?void?LcdShowStr(unsigned?char?x?unsigned?char?y?unsigned?char?*str);
extern?b
評論
共有 條評論