I was using a lcd 2x16 in a parallel mode (4bit) in a PORTC of ATmega32. with lcd.h file.
As i want to convert the communication in i2c level, i tried several times with this libraries without positive results.
A few minutes before i see this mistake in my code:
DDRC = 0xFF; // for lcd
But i didn't see anything about error or warning.
SDA and SCL signals are contained in PORTC. More specific in PC0 and PC1.
The lcd.h which using before its a base library for i2c lcd library, for communication through i2c. so it isn't need to change the methods in my main program (both libraries use same methods). So i change just the header.
DDRC=0xFF it was necessary for my lcd program with lcd.h (without i2c).
but i forget to delete this line.
The question is: could is this the problem?
PS: this is my module