The thing is, I have an original Arduino Leonardo and a cheap clone. Im trying to get the LCD 16x2 to run via the I2C adapter. Firstly, I have tried scanning via I2C scanner library the 0x address on the original Arduino, and this works really well, I can forward text on the LCD display. Secondly, when I try to do the same on my clone, I get no response in the Port monitor. Can this be caused by some unknown limitations on the clone? And when I try add LCD code to my existing one, the programs compiles and everything, but it doesn't want to work, to make things more weird, when I delete the line lcd.begin (16x2); the code runs smoothly but it of course doesn't want to display anything but the rest of the original code runs perfectly. I could paste some of it if their is a requirement to fully understand the whole picture, but the defined variables are in Polish
Can you check the chip on the clone. Is it also a ATmega32u4 ?
Can you make a photo of it. The I2C pins are also on digital pin 2 and 3, did you try those ?
Perhaps the clone is bad soldered.
The display doing weird things on the official Arduino board is another problem. Perhaps you can try an example sketch for a I2C display. Or try to find a better library.
Try to make very simple test sketch to find why it is not working.
Very glad that you replied. You guided me with your 2,3 pin hint. Previously, I had used up all of my pins, excluding 0 and 1, because as I've read that it is better not to use them. I had already pins 2, 3 taken by my other devices, and it seems like the SCL and SDA pins were in some sort of collision with the 2 and 3 pins. I think that this is weird, that way I have two pins less, that's a disadvantage. So I disconnected 2,3 and that way I was able to find 0x via I2C scanncer and in the end get to LCD to finally work.
The SDA and SCL at the end of the long connector are the same as pin 2 and 3. The are SDA and SCL.
Pin 0 and 1 can be used without restriction. Pin 0 and 1 are also Serial1, an extra hardware serial port.
Things are different for the Arduino Uno/Nano/ProMini. They use pin 0 and 1 to upload a sketch, and SDA and SCL is pin A4 and A5.
Yes.
That is why the two SDA and SCL were added at the end of the long row with version R3 of many boards. That is the row starting with pin 8.
Now at last those two new added pins are always SDA and SCL, but they are still shared with other pins...