thanks for pointing this out. I checked dmesg and found the i2c to be enabed.Addingwill 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).Code:
dtoverlay=i2c-gpio,bus=5,i2c_gpio_sda=10,i2c_gpio_scl=11,i2c_gpio_delay_us=2
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.
Code:
[ 5.591520] i2c_dev: i2c /dev entries driver[ 7.387078] i2c-gpio 5.i2c: using lines 10 (SDA) and 11 (SCL)
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