i2cdetect #6638
Replies: 1 comment
-
Posted at 2015-12-08 by @gfwilliams That's great! I'm not sure - maybe a tutorial for the website, like 'Detecting I2C devices'? I'm afraid that right now the I2C timeout isn't configurable - although I can't really see a reason why it shouldn't be smaller. Even a 50ms timeout should really be more than enough. Posted at 2015-12-09 by DrAzzy Yeah, I agree about the timeout. Does anyone know of any I2C devices that don't respond practically instantly? I can't think of any examples - though it'd be nice to be able to set the timeout, I think in the short term, it would be an improvement to just make it shorter. Posted at 2016-06-28 by @MaBecker on ESP you can use this with the latest build
Posted at 2016-09-04 by @MaBecker now using a version that returns an array of ids
Posted at 2016-11-20 by @MaBecker On ESP you have to add pinMode for the I2C pins when using sdk 2.0
Posted at 2017-01-30 by @MaBecker changes:
Posted at 2022-05-31 by markhu Thanks for this code. I added |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-12-04 by luwar
Hi, I'm using an adapted version of i2cdetect for my own i2c experiments. Maybe it is useful for somebody else:
Output - first line is not aligned correctly.
What would be the right place for such a code snippet?
It takes quite a long time to scan all addresses. Is it possible to decrease the timeout somehow?
Beta Was this translation helpful? Give feedback.
All reactions