- small corrections
- changes to use the same source code with ESP8266 (esp-open-rtos) and ESP32 (ESP-IDF)
This commit is contained in:
parent
c3ae04c93f
commit
f0425e7abd
9 changed files with 251 additions and 138 deletions
|
|
@ -1,13 +1,16 @@
|
|||
/*
|
||||
* Driver for AMS CCS811 digital gas sensor connected to I2C
|
||||
* Driver for AMS CCS811 digital gas sensor connected to I2C.
|
||||
*
|
||||
* Part of esp-open-rtos [https://github.com/SuperHouse/esp-open-rtos]
|
||||
* This driver is for the usage with the ESP8266 and FreeRTOS (esp-open-rtos)
|
||||
* [https://github.com/SuperHouse/esp-open-rtos]. It is also working with ESP32
|
||||
* and ESP-IDF [https://github.com/espressif/esp-idf.git] as well as Linux
|
||||
* based systems using a wrapper library for ESP8266 functions.
|
||||
*
|
||||
* ---------------------------------------------------------------------------
|
||||
*
|
||||
* The BSD License (3-clause license)
|
||||
*
|
||||
* Copyright (c) 2017 Gunar Schorcht (https://github.com/gschorcht]
|
||||
* Copyright (c) 2017 Gunar Schorcht (https://github.com/gschorcht)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -40,13 +43,15 @@
|
|||
#ifndef CCS811_DRV_H_
|
||||
#define CCS811_DRV_H_
|
||||
|
||||
#include "stdint.h"
|
||||
#include "stdbool.h"
|
||||
|
||||
// Uncomment one of the following defines to enable debug output
|
||||
// #define CCS811_DEBUG_LEVEL_1 // only error messages
|
||||
// #define CCS811_DEBUG_LEVEL_2 // debug and error messages
|
||||
|
||||
#include "stdint.h"
|
||||
#include "stdbool.h"
|
||||
|
||||
#include "ccs811_platform.h"
|
||||
|
||||
// CCS811 I2C addresses
|
||||
#define CCS811_I2C_ADDRESS_1 0x5A // default
|
||||
#define CCS811_I2C_ADDRESS_2 0x5B
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue