In the file "CCS811.cpp", the Wire.requestFrom() is followed by a delay(1);. That delay can be removed.
When the Wire.requestFrom() function returns, the I2C transaction has completely finished and the received data is waiting in a buffer in the Wire library.
In the file "CCS811.cpp", the Wire.requestFrom() is followed by a
delay(1);
. That delay can be removed.When the Wire.requestFrom() function returns, the I2C transaction has completely finished and the received data is waiting in a buffer in the Wire library.