Hi I’m building the mpu6050 sensor sample for my micro:bitv2. So I adopted the overlay to fit to the second i2c port. Since port 1 is not accessible… Here’s the overlay file I made:
&pinctrl {
i2c1_default: i2c1_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 1, 0)>,
<NRF_PSEL(TWIM_SCL, 0, 26)>;
};
};
i2c1_sleep: i2c1_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 1, 0)>,
<NRF_PSEL(TWIM_SCL, 0, 26)>;
low-power-enable;
};
};
};
&i2c1 {
compatible = "nordic,nrf-twim";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
pinctrl-0 = <&i2c1_default>;
pinctrl-1 = <&i2c1_sleep>;
pinctrl-names = "default", "sleep";
/*sda-pin = <34>;
scl-pin = <35>;*/
mpu6050@68 {
compatible = "invensense,mpu6050";
reg = <0x68>;
status = "okay";
int-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
};
};
I always get: “Device mpu6050@68 is not ready”. Also I’m unsure the property int-gpios
and what to set here?
Thanks.