Hello,
I have done the setup of Lsm5dsl with Nrf52832 DK board but I little bit confused about what hardware configuration is there so please guide me.
This is Code for lsm6dsl :
lsm6dsl Code link
And I am following these steps:
Hello,
I have done the setup of Lsm5dsl with Nrf52832 DK board but I little bit confused about what hardware configuration is there so please guide me.
This is Code for lsm6dsl :
lsm6dsl Code link
And I am following these steps:
I little bit confused about what hardware configuration is there so please guide me.
What exactly do you need help with?
I little bit confused about what hardware configuration is there so please guide me.
What exactly do you need help with?
so I am not aware about where the SCL and SDA pins are on the board. Please guide me with the pin diagram so that I can connect my sensor on that dedicated I2C pins. If there is accessibility that we can convert any GPIO pins into I2C pin then please guide me on how to do it as I am a newbee.
You need to add a node to your board's DTS file.
See this for example:
&i2c0 {
compatible = "nordic,nrf-twim";
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
sda-pin = <7>;
scl-pin = <8>;
lsm6dsl@6b {
compatible = "st,lsm6dsl";
reg = <0x6b>;
label = "LSM6DSL";
irq-gpios = < 9 GPIO_ACTIVE_HIGH>;
};
};