I recently got an mbed for a project (helicopter), but i am a newb on I2C protocol, and C (although fairly good in Java). I am having trouble getting a Accelerometer to work, originally made for the Lego NXT set. However, this uses a standard I2C protocol, so i am hoping to use it. The document is here:
http://www.mindsensors.com/index.php?module=documents&JAS_Document_op=downloadFile&JAS_File_id=278
The address 0x02. If i wanted to get the X title data, which is the 0x42 register, what do i do? The times i have tried it i got a bunch of empty strings, zeros, slashes, or a bunch of 46's.
Any help would be appreciated.
EDIT: If the above URL doesnt work, it's the v11 one here:
www.mindsensors.com/index.php?module=documents&JAS_DocumentManager_op=viewDocument&JAS_Document_id=16
I recently got an mbed for a project (helicopter), but i am a newb on I2C protocol, and C (although fairly good in Java). I am having trouble getting a Accelerometer to work, originally made for the Lego NXT set. However, this uses a standard I2C protocol, so i am hoping to use it. The document is here:
http://www.mindsensors.com/index.php?module=documents&JAS_Document_op=downloadFile&JAS_File_id=278
The address 0x02. If i wanted to get the X title data, which is the 0x42 register, what do i do? The times i have tried it i got a bunch of empty strings, zeros, slashes, or a bunch of 46's.
Any help would be appreciated.
EDIT: If the above URL doesnt work, it's the v11 one here:
www.mindsensors.com/index.php?module=documents&JAS_DocumentManager_op=viewDocument&JAS_Document_id=16