Good day everyone! The problem with the sensor CCS811. Why is it not read CO2 readings and other data. What could be the matter?
var i2c = new I2C();
i2c.setup({ scl : D5, sda: D4 });
var gas = require("CCS811").connectI2C(i2c);
// wait for the sensor to be ready
setInterval(function() {
print(gas.get);
}, 3000);
that's all I see
function () {var e=0!=(this.r(a.STATUS,1)[0]&a.STATUS_DATA_READY),c=this.r(a.ALG_RESULT_DATA,4);return{eCO2:c[0]<<8|c[1],TVOC:c[2]<<8|c[3],"new":e}}
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Good day everyone! The problem with the sensor CCS811. Why is it not read CO2 readings and other data. What could be the matter?
that's all I see
https://github.com/hzxi0/foto/blob/master/20190620_132418.jpg