Vladimir Ljaschko (05.04.2010 23:37, просмотров: 98) ответил bnc на Нужна помощь по I2C.
Ничего не перепутали? //-------------------------------------------------------
// Send START, defined as high-to-low SDA with SCL high
// Returns False if bus is not available
void StartI2c(void)
{ HighSda();
HighScl();
DelayI2c();
LowSda();
DelayI2c();
LowScl();
}
//-------------------------------------------------------
// Send STOP, defined as low-to-high SDA with SCL high
void StopI2c(void)
{ LowSda();
DelayI2c();
HighScl();
DelayI2c();
HighSda();
}