📄 macro.h
字号:
#define UCHAR unsigned char
#define VALUE 1
#define SYSCLK 12000000
#define BAUDRATE 9600
#define VA 40
#define TempPara 0.020513
#define XIUZHENG 1
#define I2CREAD 1
#define I2CWRITE 0
#define SMB_START 0x08 // (MT & MR) START transmitted
#define SMB_RP_START 0x10 // (MT & MR) repeated START
#define SMB_MTADDACK 0x18 // (MT) Slave address + W transmitted;
// ACK received
#define SMB_MTADDNACK 0x20 // (MT) Slave address + W transmitted;
// NACK received
#define SMB_MTDBACK 0x28 // (MT) data byte transmitted; ACK rec'vd
#define SMB_MTDBNACK 0x30 // (MT) data byte transmitted; NACK rec'vd
#define SMB_MTARBLOST 0x38 // (MT) arbitration lost
#define SMB_MRADDACK 0x40 // (MR) Slave address + R transmitted;
// ACK received
#define SMB_MRADDNACK 0x48 // (MR) Slave address + R transmitted;
// NACK received
#define SMB_MRDBACK 0x50 // (MR) data byte rec'vd; ACK transmitted
#define SMB_MRDBNACK 0x58
#define SMB_RATIO 5.1 // Test
#define JWJLENGTH 24
#define GELILENGTH 41
#define CAIYONGLENGTH 15
#define WENDULENGTH 39
#define WENDU2LENGTH 39
#define SHIDULENGTH 39
#define SHIDU2LENGTH 39
#define NONGDULENGTH 44
#define JIAQUANLENGTH 17
#define WENDU 19
#define SHIDU 19
#define NONGDU 32
#define RESULT 15
#define JIANCE 13
#define JIANCERESULT 13
#define TIME 35
#define DATE 35
#define HUMIDITY0 7351
#define HUMIDITY10 7224
#define HUMIDITY20 7100
#define HUMIDITY30 6976
#define HUMIDITY40 6853
#define HUMIDITY50 6728
#define HUMIDITY60 6600
#define HUMIDITY70 6468
#define HUMIDITY80 6330
#define HUMIDITY90 6186
#define HUMIDITY100 6033
#define LOW50 0.08186
#define HIGH40 0.0738
#define MAX10 0.06536
#define TestTimeLength 0x2b
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -