{
  "id": "ccs811",
  "name": "CCS811 eCO2 + TVOC (CJMCU-811)",
  "category": "sensor",
  "measures": [
    "eco2",
    "tvoc"
  ],
  "pins": [
    {
      "name": "VCC",
      "role": "power"
    },
    {
      "name": "GND",
      "role": "ground"
    },
    {
      "name": "SCL",
      "role": "i2c_scl"
    },
    {
      "name": "SDA",
      "role": "i2c_sda"
    },
    {
      "name": "WAK",
      "role": "digital_in",
      "needsOutput": true,
      "notes": "Wake, active LOW. Tie to GND to keep it awake"
    },
    {
      "name": "INT",
      "role": "int",
      "notes": "Interrupt output, optional"
    },
    {
      "name": "RST",
      "role": "digital_in",
      "needsOutput": true,
      "notes": "Reset, active LOW. Optional"
    },
    {
      "name": "ADD",
      "role": "passive",
      "notes": "Address select: LOW = 0x5A, HIGH = 0x5B"
    }
  ],
  "bus": "i2c",
  "addresses": [
    "0x5A",
    "0x5B"
  ],
  "idCheck": {
    "register": "0x20",
    "expect": "0x81"
  },
  "voltage": "3.3",
  "pullupsOnBoard": true,
  "model": {
    "shape": "breakout",
    "size": [
      21.3,
      15,
      1.6
    ],
    "color": "#1F4FA8"
  },
  "keywords": [
    "ccs811",
    "cjmcu-811",
    "eco2",
    "tvoc",
    "air quality",
    "qualità aria",
    "voc"
  ],
  "sources": [
    {
      "title": "ams CCS811 datasheet",
      "section": "Register 0x20 HW_ID (reads 0x81)"
    },
    {
      "title": "ams CCS811 datasheet",
      "section": "I2C address 0x5A (ADDR LOW) / 0x5B (ADDR HIGH)"
    }
  ]
}