I have some basic code using a paj7620 gesture sensor. When I upload to a Nano, it works. Using the same code & pin configuration, on the Leonardo I get continual "transmission errors". I assume the Leo uses the same analog pins (4 & 5)? The Leo works with other code....
Please post your sketch, using code tags when you do
When you refer to pins 4 and 5 do you actually mean pins A4 and A5 which are used for I2C communication (SDA/SCL) on a Nano
Why do you assume that? Why do you not check before you ask a question on the forum?
I assumed that because images online show it's the same on the Uno and the pins are not set within the code. However, it seems the Leo uses pins 2 & 3.