Shouldn't this be i2cbuf and , respective?
So maybe you should upload your complete project (or a minimal one showing the behaviour), together with a oscilloscope / logic analyzer shot of the I2C output (so we can see what gets send over the wires).
Alternatively: set a breakpoint just before the I2C send and verify that the buffer what it should be (or write it to the serial port and check with the PC).
Hi, thanks for the suggestions. I used the debugging tool (first time for
me) and realised that I'd declared the variable to hold the ADC output to
be 8-bit rather than 16-bit hence I wasn't seeing the most significant
bits. Thank you once again for the suggestions.
On 6 November 2017 at 21:28, user_78878863 <email@example.com>