I have a N+2 with the latest firmware (which I know has I2C fixes).
I'm using an Adafruit LSM303 compass/accelerometer module.
When I run my program under the Visual Studio debugger everything works great. When I run it standalone all calls to I2CDevice.Execute return 0 bytes transferred. Has anyone run into this? Any ideas of how to fix it? Even if the device was working fine under the debugger and I press the reset button (while still attached to the debugger) it will stop working. Does the debugger somehow to a I2C reset?
I'm not sure if the Adafruit LSM303 has the proper pullup resistors or not (they don't publish their schematic, and on the board I just see two transistors on the SCL/SDA lines). However since it is working while running my code under the debugger I don't think it is a pullup resistor issue.
I've attached my two I2C related files. The CompassSensor module is clearly not done and is doing things like invalid linear math for computing angles, I'm just playing around at this stage.
thanks,
alex