Frank Welcome to Microsoft Q&A forum!
Apologies for the delayed response.
I saw an example of read and write 8-bit register using I2C. How to read and write a 16-bit address register? the register address is 0x0158, and I want to write 0x01 to this register. How to use I2CMaster_Write to change the value.
Can you share more details about the examples you are referring to? Did you check the I2C samples that demonstrate I2C functionality on the Azure Sphere platform?
Have a look at the I2CMaster_Read Function and the sample https://github.com/Azure/azure-sphere-samples/blob/fe8117ba45404e6e0f48546c7bca9c2d2074c3ad/Samples/I2C/I2C_LSM6DS3_HighLevelApp/main.c and let us know if that helps.
If you need further help in this matter, please comment in the below section and we are happy to discuss!
If this answers your query, do click Accept Answer and Yes for this answer as helpful. And, if you have any further query do let us know by commenting in the below section.