In the DTS file for I2C, how do you set the port of the pin specified?
&i2c0 {
compatible = "nordic,nrf-twi";
status = "okay";
sda-pin = <26>;
scl-pin = <27>;
};
In my custom board, SDA is 1.07 and SCL is 0.20.
In the DTS file for I2C, how do you set the port of the pin specified?
&i2c0 {
compatible = "nordic,nrf-twi";
status = "okay";
sda-pin = <26>;
scl-pin = <27>;
};
In my custom board, SDA is 1.07 and SCL is 0.20.
Hi Nick
Simply add 32 for pins on port 1. In the case of P1.07 this becomes pin 32 + 7 = 39
Best regards
Torbjørn