-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i2c-gpio module has the problem of slow response #1467
Comments
Have you left the SCL line either floating or with a pull down? If so then the driver will be doing clock stretching on every bit. |
30 second test doing as you reported. Add the dtoverlay - defaults to using GPIOs 23&24. i2cdetect -y 3 takes a long time.
and i2cdetect -y 3 completes very quickly with all dashes. So my guess looks to be correct - you have no pullups. |
Thank you very much! |
When I enable devictree i2c-gpio in /boot/config.txt , after run sudo i2cdetect -y 3 , the response is very slow , about 1 second each scan when display '--'.
pi@raspberrypi:~ $ sudo i2cdetect -y 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- ^Cpi@raspberrypi:~ $
pi@raspberrypi:~ $ cat /boot/config.txt | grep i2c-gpio
dtoverlay=i2c-gpio
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
Tested On PI2 and PI3
What could be the causes ?
The text was updated successfully, but these errors were encountered: