Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5597

Advanced users • Re: Using I2C 5 and DPI 666 simultaneously

$
0
0
Adding

Code:

dtoverlay=i2c-gpio,bus=5,i2c_gpio_sda=10,i2c_gpio_scl=11,i2c_gpio_delay_us=2
will have no effect on the output of raspi-gpio as the default condition is for the pins to be inputs when doing software I2C, but you should have a new /dev/i2c-N device created. Check your kernel logs (dmesg).
The fact that raspi-gpio is reporting "level=0" for those pins implies you don't have any pull ups installed.

Otherwise everything aBUGSworstnightmare has posted is spot on.
thanks for pointing this out. I checked dmesg and found the i2c to be enabed.

Code:

[    5.591520] i2c_dev: i2c /dev entries driver[    7.387078] i2c-gpio 5.i2c: using lines 10 (SDA) and 11 (SCL)
using i2cdetect and i2cdump works fine now.

Thanks 6by9 and bugs for helping with this.

So I guess there wont be a problem in using i2c bus 5 in dtoverlays hereafter.

for anyone looking for a solution I used this in config.txt

Code:

dtoverlay=i2c-gpio,bus=5,i2c_gpio_sda=10,i2c_gpio_scl=11

Statistics: Posted by BalajiNarasimhan — Tue Jan 16, 2024 4:00 am



Viewing all articles
Browse latest Browse all 5597

Trending Articles