![]() |
Using I2C to get sensor data?
I'm having some issues with getting I2C to work on the Java library. I'm using a triple axis magnetometer -> https://www.sparkfun.com/products/10530
This is the code i have -> http://pastebin.com/Ad9pbuf0 I used the same hex commands from the sparkfun tutorial -> https://www.sparkfun.com/tutorials/301 0x02 Select mode register 0x00 Continuous measurement mode 0x03 Select register 3, X MSB register (Most Significant Bit) Using the code above i get jumbled numbers back, and it does not update continuously. Thanks, Matthew Smith |
Re: Using I2C to get sensor data?
As a matter of fact, I'm working on creating a class that will provide support for this particular sensor.
I won't be able to test it properly until I get mine in the mail, however I will post the code when I get it working (and hopefully submit it to SparkFun). |
| All times are GMT -5. The time now is 22:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi