avatar

Member #1925

Member Since: March 2, 2006

Country: United States

  • 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
    }