i2c.h
来自「数控系统的模拟系统,用SSTC51仿真单片机,仿真数控机床切割,能执行数控机床代」· C头文件 代码 · 共 25 行
H
25 行
#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 + =
减小字号Ctrl + -
显示快捷键?