Browse Source

improve default configuration

bme680
Mathieu Maret 2 years ago
parent
commit
c476f38428
  1. 11
      WifiControlSensor/config_device.h

11
WifiControlSensor/config_device.h

@ -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

Loading…
Cancel
Save