-
Notifications
You must be signed in to change notification settings - Fork 46
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
Chinese module, I2C error #27
Comments
Hmm The Arduino library for ESP32 version 1.0.0 has an i2c bug: it does not support repeated start conditions. This seems to be fixed in release 1.0.1. Which one are you using? |
Thank you for your answer I was on 1.0.0 ... |
Wait!
I do some tests more. |
I get this:
So I should upgrade my CSS811 firmware |
Done! |
Hi,
I found the firmware section in datasheet and was wondering if I already had the last one. So I founded your library.
But unfortunately like https://github.com/maarten-pennings/CCS811/issues/6 and https://github.com/maarten-pennings/CCS811/issues/7 I can't get your library working.
I can successfully use adafruit or sparkfun library ones. I don't touch wiring, just upload your code, and get this "I2C error":
I tried with and without setting I2C SDA/SCL pins (21,22)
I tried with and without ccs811.set_i2cdelay(50);
I tried with and without an WAK pin (17 / -1)
I tried with an without an I2C address set (0x5A)
I am on a ESP32 with a Chinese CSS811 module like https://raw.githubusercontent.com/maarten-pennings/CCS811/master/wire-ccs811only.jpg
I don't add resistors for pull-up.
Oh and something weird: after flashing your library, if I flash again the adafruit one that was working for me just before, I had to do some reset of the chip first or it won't be recognized.
Sorry for my poor English, hope this information help.
The text was updated successfully, but these errors were encountered: