Hallo
Hier nun der Protyp aus der Lib
Villeicht hilft das. Ich hoffe ihr könnt mir helfenCode:inline void i2cReceiveByte(u08 ackFlag) { // begin receive over I2C if( ackFlag ) { // ackFlag = TRUE: ACK the recevied data outb(TWCR, (inb(TWCR)&TWCR_CMD_MASK)|BV(TWINT)|BV(TWEA)); } else { // ackFlag = FALSE: NACK the recevied data outb(TWCR, (inb(TWCR)&TWCR_CMD_MASK)|BV(TWINT)); } }
Danke im Voraus
Gruß Robert
Lesezeichen