I2C Servo Shield

I don’t think that my code will help directly since I’m controlling another shield, but the I2C chip is the same on both. Take a look here, specifically at the TA.NetMF.AdafruitMotorShieldV2 code.


I think that you’ll be able to work with the PCA9685 related classes, and the documentation from Adafruit on the servo shield to get started.

So, I’ve just looked at the data sheet for that TI TMP102. When you are reading the temperature register, if the rightmost bit in the second byte is 1 (indicates “Extended Mode”) you’ll need to do as you’ve suggested with your “shift and or” method, otherwise it’s a 12 bit result, and the tutorial method would be correct. Also if you aren’t using “extended mode” you don’t even need to process the second byte if you aren’t interested in the fractional part of the temperature, perhaps that’ll help.