improve default configuration

This commit is contained in:
Mathieu Maret 2020-02-28 17:16:56 +01:00
parent 0c9e8b977b
commit c476f38428

View File

@ -1,5 +1,5 @@
#pragma once
#include "pins_arduino.h"
// Enable Serial Console (Disable to save space and power)
#define CONFIG_SKETCH_DEBUG
@ -12,11 +12,14 @@
//#define CONFIF_DISABLE_OTA
//#define CONFIG_DISABLE_MQTT
// Enable the temperature, pressure, humidity and gaz Sensor BME680 on standard i2c esp8266 pins
// It use default i2c pin GPIO4(D2): SDA, GPIO5(D1):SCL
#define CONFIG_ENABLE_BME680
// Enable the temperatue and pressure Sensor BMP180
// (CONFIG_BMP180_SDA and CONFIG_BMP180_SDA should be defined as well)
#define CONFIG_ENABLE_BMP180
#define CONFIG_BMP180_SDA 12
#define CONFIG_BMP180_SCL 14
#define CONFIG_BMP180_SDA SDA //D2
#define CONFIG_BMP180_SCL SCL //D1
#define CONFIG_ENABLE_DHT
#define CONFIG_DHT_PIN 2
@ -38,7 +41,7 @@
/* DEFAULT VALUE ALSO DEFINED IN CONFIG.H */
//If this GPIO is LOW at boot, device will enter setup mode
#define CONFIG_SETUP_GPIO 5
#define CONFIG_SETUP_GPIO 14 //D5
// Time to sleep between 2 webserver request (increase it reduce battery usage but increase latency)
//#define CONFIG_WEB_DELAY_MS 100