Skip to content
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

Added 50kHz operation mode for I2C/Wire library #3401

Merged
merged 2 commits into from
Mar 24, 2018

Conversation

derSeddy
Copy link
Contributor

@derSeddy derSeddy commented Jul 4, 2017

When using Apollon77's library for Miceuz I2C soil moisture sensor (https://github.com/Apollon77/I2CSoilMoistureSensor) I recognized that for longer cables between the sensor and the ESP8266 (Wemos D1 mini), in my case 1m, I got invalid readings from the sensor. I was able to solve this issue by slowing the I2C bus down to roughly 50kHZ.
This patch is needed to change the bus speed to a value this low. I don't have the equipment to measure the actual bus speed, so my twi_dcount are guesses. Still I would like to see this patch merged as it solved the issue I had with the sensor and might be beneficial for others

@devyte devyte merged commit 6464ae0 into esp8266:master Mar 24, 2018
@d-a-v d-a-v added this to the 2.4.2 milestone Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants