Instructions
www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
Geben Sie nun in das sich önende Fenster CCS811 ein und installieren
Sie die Adafruit CCS811 Library by Adafruit.
3. Codebeispiel
Kopieren Sie nun das folgende Codebeispiel in Ihre IDE und klicken Sie
auf Upload. Önen Sie auch den seriellen Monitor und setzen Sie die
Baudrate auf 9600, damit Sie die Ausgaben sehen können.
/***************************************************************************
This is a library for the CCS811 air
This sketch reads the sensor
Designed specifically to work with the Adafruit CCS811 breakout
----> http://www.adafruit.com/products/3566
These sensors use I2C to communicate. The device's I2C address is 0x5A
Adafruit invests time and resources providing this open source code,
please support Adafruit andopen-source hardware by purchasing products
from Adafruit!
Written by Dean Miller for Adafruit Industries.
BSD license, all text above must be included in any redistribution
***************************************************************************/
#include "Adafruit_CCS811.h"
Adafruit_CCS811 ccs;
void setup() {
ccs.setDriveMode(1);
Serial.begin(9600);
Serial.println("CCS811 test");