I need some help getting the I2C communication working with my N3.
I've tried running a few devices over I2C with no luck.
The first device was an AM2320 Temp/Humidity sensor (adafruit.com/product/3721)
I was attempting to write my own drivers for this one. First I tried the examples from Wilderness labs using I2CDevice, but then after that didnt work I tried the foundation's I2CBus, no luck there either.
I decided to purchase a second sensor, the SI7021 Temp/Humidity sensor (adafruit.com/product/3251)
This time I was going to use the foundations peripheral driver because I thought, hey maybe I'm doing something wrong with the code. Or maybe I didn't wire the pull-up resistors correctly (this second device has built in pull-ups)
Peripheral driver used: https://github.com/WildernessLabs/Netduino.Foundation/tree/master/Source/Peripheral_Libs/Sensors.Atmospheric.SI7021
I then followed these instructions and took the polling route: http://netduino.foundation/Library/Sensors/Atmospheric/SI7021/
All I end up with is a "WriteRead: Retry count exceeded" error. I ran into this error in the first attempt as well. I even hooked everything up to a second/spare N3 controller, same result.
Can anybody point me in the right direction or tell me what I am doing wrong?
I'm still trying to figure out how to toggle the internal pull-up resistors. I read about that in other I2C issues around the web, but still havent figured out how to control that internally.