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

Compute Module • Re: How to enable i2c on pin 27 & 28, pi zero 2w

$
0
0
I've been tried with
dtparam=i2c_vc=on or with dtoverlay=i2c0,pins_27_28 and many more.
There is no HW interface available on that pins --> this won't work.

Code:

dtoverlay=i2c-gpio,bus=11,i2c_gpio_sda=27,i2c_gpio_scl=28
should allow you to run a bit-bashed SW I2C from that pins. The bus no is 11 in that example.

Remember that you will need pullups on the bus.

Statistics: Posted by aBUGSworstnightmare — Thu May 23, 2024 4:24 am



Viewing all articles
Browse latest Browse all 5804

Trending Articles