Im trying to read data from ITG3200 gyro in the Drotek 9DOF IMU that i have. (http://www.drotek.fr/shop/en/34-imu-9dof-itg3200-gyro-bma180-accelerometer-hmc5883-magnetometer.html)
Im using the Maple mini with the scl and sda wires from the IMU connected in 1,0 pins to the maple.
Here is the code..
#include <stdlib.h>
#include "Wire.h"
#include "wirish.h"
void itg3200_init() {
Wire.beginTransmission(0x69);
Wire.send(0x00);
Wire.endTransmission();
Wire.requestFrom(0x69, 1);
while (!Wire.available());
uint8 id = Wire.receive();
SerialUSB.print("id: 0x");
SerialUSB.println(id, HEX);
}
void setup() {
waitForButtonPress(0);
Wire.begin(0,1);
delay(100);
SerialUSB.println("gyro init..");
itg3200_init();
}
void loop() {
SerialUSB.print("loop");
delay(1000);
}
The problem is that the code is freezing at itg3200_int()..
Also ive attached 2 10K pullups in the sda scl lines but without any success
Can anyone help me?
thanx
T.