User avatar
TimG
Posts: 257
Joined: Tue Apr 03, 2012 12:15 am
Location: Switzerland

i2c-gpio

Fri Apr 06, 2018 10:35 pm

Is it possible to run the i2c-gpio overlay with the built-in pull-ups engaged?

I've tried tinkering with the overlay file and adding brcm,pull = <2 2>; to [email protected], but without success. Trying to enable the pull-ups after boot with wiringpi causes a crash.

I realise the GPIO pull-ups are much weaker than recommended for I2C, but I think they'd be sufficient with short interconnects and moderate clock speeds.

User avatar
TimG
Posts: 257
Joined: Tue Apr 03, 2012 12:15 am
Location: Switzerland

Re: i2c-gpio

Fri Apr 06, 2018 11:13 pm

Right after posting (!) I stumbled across this, which does exactly what I want:
Very handy, and no tinkering with overlays required!

Return to “Device Tree”