The Netduino forums have been replaced by new forums at community.wildernesslabs.co.
This site has been preserved for archival purposes only
and the ability to make new accounts or posts has been turned off.
Posted by scardinale
on 18 November 2015 - 11:49 PM
Try using this example from GHI's codeshare. It will tell you what the I2C address of your device is. If you get an value back it will tell you the 8bit address and verify that your setup is correct.
Posted by scardinale
on 18 November 2015 - 12:13 PM
That is true about the addressing but NetMF uses a 7-bit addressing scheme and automatically appends the correct bit when reading or writing internally. So all you need to do is supply the 8-bit address right shifted by one.
Posted by scardinale
on 06 February 2015 - 11:17 PM
Simpler yet is to add these two extension methods to your project.
<System.Runtime.CompilerServices.Extension> _
Public Shared Function RightShift(integerToShift As Integer, bitsToShift As Integer) As Integer
Return CInt(integerToShift / 2 ^ bitsToShift)
End Function
<System.Runtime.CompilerServices.Extension> _
Public Shared Function LeftShift(integerToShift As Integer, bitsToShift As Integer) As Integer
Return CInt(integerToShift * 2 ^ bitsToShift)
End Function