Ich habe jetzt noch etwas rumexperimentiert. Anscheinend liegt es an der i2c_stop() Funktionen dass Befehle, die nach der Print-Funktion kommen, nicht ausgeführt werden.
i2c_stop():
Also wird die "stop condition" irgendwie nicht ausgeführt.Code:/************************************************************************* Terminates the data transfer and releases the I2C bus *************************************************************************/ void i2c_stop(void) { /* send stop condition */ TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWSTO); // wait until stop condition is executed and bus released while(TWCR & (1<<TWSTO)); }/* i2c_stop */
Jemand ne Ahnung, an was das liegen kann? Liegt es am RN-KeyLCD?
Ich wäre über ne Hilfe echt froh
Danke und Helau ^^






Zitieren

Lesezeichen