⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 i2c_stop.c

📁 这是适用I/O口模拟的 I2C 程序
💻 C
字号:
/*************************** Function  Message ****************************
** Funtion Name : I2C_Stop
** Arguments: BYTE bComOrder: the communication order
** Return Value:   return  the communication status
** Restrictions:   none
** created by: ZhangBin
** Last modified: 12/2/04 (MM/DD/YY)
** Description:  the main program  of the EOS System
***************************************************************************/
void   I2C_Stop(void)
{
 	SDA_DIR_OUT();             // SDA = 0;
 	SCL_DIR_IN();              // SCL = 1;
 	I2C_DELAY();    
 
 	SDA_DIR_IN();              //SDA = 1;
 	I2C_DELAY(); 

 	SDA_DIR = 1;
 	SCL_DIR = 1;

};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -