ncs v1.9.1
Reference nrf\applications\serial_lte_modem\src\twi
This example does not see how to configure the pin.so how to config SCK and SDA Pin?
Thanks!!!
ncs v1.9.1
Reference nrf\applications\serial_lte_modem\src\twi
This example does not see how to configure the pin.so how to config SCK and SDA Pin?
Thanks!!!
Hi
You can add them yourself, using the syntax seen in zephyr.dts for i2c2:
i2c2: arduino_i2c: i2c@a000 {
compatible = "nordic,nrf-twim";
#address-cells = < 0x1 >;
#size-cells = < 0x0 >;
reg = < 0xa000 0x1000 >;
clock-frequency = < 0x186a0 >;
interrupts = < 0xa 0x1 >;
status = "disabled";
label = "I2C_2";
sda-pin = < 0x1e >;
scl-pin = < 0x1f >;
Regards,
Sigurd Hellesvik
thank you.I wank to know i2c0,i2c1...which pin is used and why can't it be found.
thank you.I wank to know i2c0,i2c1...which pin is used and why can't it be found.