This pull request adds support for getting/setting the sensor's baseline register.
According to Application Note AN000370 the "CCS811 calculates the eCO2 and eTVOC using the baseline as a reference point" and it won't save the baseline on it's own. Thus, when you bring up the sensor in polluted air you need to restore a baseline from a time when the sensor has been exposed to clean air. Otherwise, your readings will be wrong (based on wrong assumptions on part of the sensor). Again, see the Application Note for details.
This pull request adds support for getting/setting the sensor's baseline register.
According to Application Note AN000370 the "CCS811 calculates the eCO2 and eTVOC using the baseline as a reference point" and it won't save the baseline on it's own. Thus, when you bring up the sensor in polluted air you need to restore a baseline from a time when the sensor has been exposed to clean air. Otherwise, your readings will be wrong (based on wrong assumptions on part of the sensor). Again, see the Application Note for details.