代码搜索结果
找到约 10,000 项符合
C 的代码
twi_lib.h
/*H**************************************************************************
* NAME: twi_lib.h
*----------------------------------------------------------------------------
* Copyright (c)
twi_lib.h
/*H**************************************************************************
* NAME: twi_lib.h
*----------------------------------------------------------------------------
* Copyright (c)
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= BIT2; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
twi_lib.h
/*H**************************************************************************
* NAME: twi_lib.h
*----------------------------------------------------------------------------
* Copyright (c)
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= BIT2; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
i2c.h
/*********************************************************************
微 雪 电 子 WaveShare http://www.waveShare.net
目 的: 建立I2C操作库
目标系统: 基于任何兼容C51的微处理器
应用软件: Keil C
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= BIT2; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= SCL; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= SCL; //将SCL管脚(P1.3)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{
i2c.c
#include "I2C.h"
void I2C_Initial( void )
{
P1DIR |= BIT2; //将SCL管脚(P1.2)设置为输出管脚
I2C_Set_sck_low();
I2C_STOP();
Delay_ms(10);
return;
}
void I2C_Set_sda_high( void )
{