📄 i2c.h
字号:
#ifndef I2C_H
#define I2C_H
//#include <REGX51.H>
#define FALSE 0
#define TRUE 1
#ifdef Y12
#define DELAY_TIME 10
#endif
#ifdef Y22
#define DELAY_TIME 20
#endif
#define SLAW 0xa0 /*器件地址(写)*/
#define SLAR 0xa1
#define Page_Word 16
sbit SDA=P3^6;
sbit SCL=P3^7;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -