|
引脚定义Keil5编写
sbit ADC_CS = P1^0; // ADC0832的CS引脚
sbit ADC_CLK = P1^1; // ADC0832的CLK引脚
sbit ADC_DAT = P1^2; // ADC0832的DI/DO引脚
sbit LcdRs_P = P2^7; // 1602液晶的RS管脚
sbit LcdRw_P = P2^6; // 1602液晶的RW管脚
sbit LcdEn_P = P2^5; // 1602液晶的EN管脚
sbit Key1_P = P3^2; // 减按键
sbit Key2_P = P3^3; // 加按键
sbit Buzzer_P = P2^0; // 蜂鸣器
sbit Led_P = P2^1; // LED灯
sbit fan =P1^5;
串口9600波特率实时输出LCD1602显示数据
可蓝牙用于手机APP显示
或者上位机显示
|
|