# 成功读取电压并显示

This commit is contained in:
jxh
2025-03-18 22:49:46 +08:00
parent 65614ace50
commit 7bcd4c1c17
17 changed files with 1120 additions and 863 deletions

View File

@ -3,26 +3,23 @@
#include "stdint.h"
//#define NDEBUG //取消断言
#include <assert.h> // 断言库
// #define NDEBUG //取消断言
#include <assert.h> // 断言库
#include <intrins.h>
#include <STC15.H>
#define FOSC 30000000UL // 定义系统频率
#define FOSC 30000000UL // 定义系统频率
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
#define True 1
#define False 0
sbit SDA = P2^7;
sbit SCL = P2^6;
sbit SDA = P2 ^ 7;
sbit SCL = P2 ^ 6;
#endif