Tried out your accelerometer example but got an error on line 208 in MMA8652--> Left side of the expression data type is 'Byte" and the right side expression returns an Integer.' Downloaded today 6/24.
I don't know why it's returning an integer, but I changed it to: dataByte = dataByte & ~0x01.ToByte
Now seems to work. Am I correct?
Thanks.