By using the function I2C2_Write(uint16_t address, uint8_t* data, size_t dataLength)
Below is my coding ;
MCP9800_Write[0] = 0x01;
MCP9800_Write[1] = 0x60;
writelength = 2;
I2C2_Write(MCP9800_I2C_Addr,MCP9800_Write,writelength);
the output is
MCP9800 Temp = 96.004 Dec.C
(the correct output is 31.0625 Dec. C)
