Page 1 of 1

I2C clock stretching. Test a prototype!

Posted: 30 Jun 2018 19:02
by p0lyg0n1
Hi,
For those who need I2C clock stretching. I have made the first prototype. I am porting CCS811 sensor library to Z-Uno and I have to modify the Wire library first. You could help me if you test this library with your devices.
How to use this library:
1. You need the latest 2.1.4 cores.
2. Replace Wire.cpp/.h inside your cores with attached files(You have to unzip them first).
3. Try it with your project using I2C devices with "standard mode" (without your code modification).
4. Then add to your setup function

Code: Select all

Wire.enableTS(true);
5. Rebuild & try your device once more.
If all will be ok, I'll add this library to next beta/release.

Best regards,
Alex.

Re: I2C clock stretching. Test a prototype!

Posted: 08 Jul 2018 20:20
by michap
As discussed, it is working with my lib for AMS IAQCore sensors - and its working still with "old" sensors ;)

Thanks for your work!
Michael

Re: I2C clock stretching. Test a prototype!

Posted: 25 Jul 2018 02:51
by PoltoS
2.1.4 supports Wire (I2C) with Clock Stretching https://forum.z-wave.me/viewtopic.php?f ... =40#p77418