Comments: CCS811 Air Quality Breakout Hookup Guide

Pages

Comments 1 comment

  • Hi - Just a small typo I noticed in the first loop() example code

    void loop()
    {
      if (myCCS811.dataAvailable())
      {
        myCCS811.readAlgorithmResults();
        int tempCO2 = myCCS811.getCO2();
        int tempVOC = myCCS811.getTVOC(); // <---- TYPO corrected here getTVOC() instead of gettVOC()
      }
      else if (myCCS811.checkForStatusError())
      {
        while(1);
      }
    
      delay(1000); //Wait for next reading
    }
    

If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!