SparkFun_CCS811_Arduino_Library
SparkFun_CCS811_Arduino_Library copied to clipboard
Latest version is not working with ESP8266 (NodeMCU v1)
Don't know the exact reason, but I can't get any version greater than 1.0.3 to work with ESP8266. The error returned is code 2 (I2C error), I am using the official Sparkfun sensor on the same bus with a 128x32 SSD1306 OLED screen. Only using the internal pull ups from CCS811. Works good with v1.0.3.
I do get some I2C random issues (few times a day) when these two modules are on the same bus, but it's easily correctable using a procedure adapted from http://www.forward.com.au/pfod/ArduinoProgramming/I2C_ClearBus/I2C_ClearBus.ino.txt and reading at 10s intervals in mode 2 to minimize bus interference.
Modules seems to work correctly separately, so it might be a compatibility issue. Using the Adafruit Library for the display if this helps.