Hi folks,
Having this issue with a library.
Does not work with the variables, only if I write the number as below the faulty line.
Any ideas?

Hi folks,
Having this issue with a library.
Does not work with the variables, only if I write the number as below the faulty line.
Any ideas?

That's because it can't tell the which one of the two you want from the variables you have supplied. Essentially you have asked for this:
I2c.write(<int>,<int>,<byte>); //note: the literals are <int> by default
But that doesn't exist, so which does it pick? Instead, you can do one of the following three things:
const byte first = 0x57;
const byte second = 0x05;
I2c.write(first,second,lowByte);
or
I2c.write((byte)0x57,(byte)0x05,lowByte);
or
I2c.write(0x57,0x05,(int)lowByte);
The middle one seems the better option.
On this particular case, for some reason i had to do as below:
I2c.write((uint8_t)0x57,(uint8_t)(theMemoryAddress+1), (uint8_t)highByte);
Even tough all the bits are already uint8_t, I had to define them again. Odd. Working now.