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

Troubleshooting • Re: raspPi 4B i2c cannot detect address

$
0
0
Check the GPIO is working by driving it manually. Using Raspberry Pi OS Bookworm, you can use the pinctrl command to drive the pin.

To set the pin to output and drive it high, then check the state:

Code:

rpdom@raspi16:~ $ pinctrl set 3 op dhrpdom@raspi16:~ $ pinctrl get 3 3: op -- -- | hi // GPIO3 = outputrpdom@raspi16:~ $ 
Similarly to set it low and check the output

Code:

rpdom@raspi16:~ $ pinctrl set 3 op dlrpdom@raspi16:~ $ pinctrl get 3 3: op -- -- | lo // GPIO3 = outputrpdom@raspi16:~ $ 
To set it back to SCL1:

Code:

rpdom@raspi16:~ $ pinctrl set 3 a0rpdom@raspi16:~ $

Statistics: Posted by rpdom — Thu Mar 27, 2025 12:43 pm



Viewing all articles
Browse latest Browse all 8026

Trending Articles