原理图及运行演示
源代码
#include
#include
#include
#define uchar unsigned char
#define uint unsigned int
sbit I2C_SCL=P1^7; //I2C时钟引脚
sbit I2C_SDA=P1^6; //I2C数据输入输出引脚
sbit KEY=P2^0;
unsigned char ADC_Value;
char DispBuf[30]; //用来存放打印的数据
void delay(unsigne
2021-12-22 16:58:40
300KB
输出
采样
1