Subversion Repositories group.electronics

Rev

Rev 138 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 138 Rev 139
Line 57... Line 57...
57
//    _delay_us(I2CBB_DELAY);
57
//    _delay_us(I2CBB_DELAY);
58
}
58
}
59
 
59
 
60
unsigned char i2cbb_ReadBit() {
60
unsigned char i2cbb_ReadBit() {
61
    I2CBB_DATA_HI();
61
    I2CBB_DATA_HI();
-
 
62
    _delay_us(I2CBB_DELAY);
62
 
63
 
63
    I2CBB_CLOCK_HI();
64
    I2CBB_CLOCK_HI();
-
 
65
 
64
    while ((I2CBB_PIN & (1 << I2CBB_CLK)) == 0);
66
    while ((I2CBB_PIN & (1 << I2CBB_CLK)) == 0);
65
    _delay_us(I2CBB_DELAY);
67
    _delay_us(I2CBB_DELAY);
66
 
68
 
67
    unsigned char c = I2CBB_PIN;
69
    unsigned char c = I2CBB_PIN;
68
 
70