- 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
|
|
@ -6,13 +6,13 @@
|
|||
*
|
||||
* +------------------------+ +--------+
|
||||
* | ESP8266 Bus 0 | | CCS811 |
|
||||
* | GPIO 5 (SCL) >--+----> SCL |
|
||||
* | GPIO 4 (SDA) ---|-+--- SDA |
|
||||
* | GPIO 14 (SCL) ---+----> SCL |
|
||||
* | GPIO 13 (SDA) <--|-+--> SDA |
|
||||
* | GND ---|-|--> /WAKE |
|
||||
* | | | | +--------+
|
||||
* | | | | | SHT3x |
|
||||
* | | +----> SCL |
|
||||
* | | +--- SDA |
|
||||
* | | +--> SDA |
|
||||
* +------------------------+ +--------+
|
||||
*/
|
||||
|
||||
|
|
@ -31,8 +31,8 @@
|
|||
|
||||
// define I2C interfaces at which CCS811 and SHT3x sensors are connected
|
||||
#define I2C_BUS 0
|
||||
#define I2C_SCL_PIN 5
|
||||
#define I2C_SDA_PIN 4
|
||||
#define I2C_SCL_PIN 14
|
||||
#define I2C_SDA_PIN 13
|
||||
|
||||
static ccs811_sensor_t* ccs811; // CCS811 device data structure
|
||||
static sht3x_sensor_t* sht3x; // SHT3x device data structure
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue