2016-03-30 00:44:37 +02:00
|
|
|
#pragma once
|
2020-02-28 17:16:56 +01:00
|
|
|
#include "pins_arduino.h"
|
2016-03-30 00:44:37 +02:00
|
|
|
// Enable Serial Console (Disable to save space and power)
|
|
|
|
#define CONFIG_SKETCH_DEBUG
|
|
|
|
|
|
|
|
// Switch Serial console on gpio 13 and 15 (So you can use GPIO 1 and 3 for other things)
|
|
|
|
//#define CONFIG_ENABLE_EXTRA_GPIO
|
|
|
|
|
2016-09-28 23:19:12 +02:00
|
|
|
// Disable SSL (so mqtts) to save some place (~52ko)
|
|
|
|
//#define CONFIG_DISABLE_SSL
|
2016-10-28 18:06:57 +02:00
|
|
|
//#define CONFIG_DISABLE_WEB
|
|
|
|
//#define CONFIF_DISABLE_OTA
|
|
|
|
//#define CONFIG_DISABLE_MQTT
|
2016-09-28 23:19:12 +02:00
|
|
|
|
2020-02-28 17:16:56 +01:00
|
|
|
// 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
|
2020-07-28 19:37:19 +02:00
|
|
|
// Should be powered by 3.3v and sampled every 3sec or 300s (Or you should adapt bsec_config_iaq in BME680_BSEC.ino )
|
|
|
|
#define CONFIG_BME680_BSEC_ENABLE
|
|
|
|
#define CONFIG_BME680_BSEC_I2C_ADDR 0x77
|
|
|
|
|
|
|
|
// 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
|
2016-03-30 00:44:37 +02:00
|
|
|
// Enable the temperatue and pressure Sensor BMP180
|
|
|
|
// (CONFIG_BMP180_SDA and CONFIG_BMP180_SDA should be defined as well)
|
2020-07-28 19:37:19 +02:00
|
|
|
//#define CONFIG_ENABLE_BMP180
|
|
|
|
//#define CONFIG_BMP180_SDA SDA //D2
|
|
|
|
//#define CONFIG_BMP180_SCL SCL //D1
|
|
|
|
//
|
|
|
|
//#define CONFIG_ENABLE_DHT
|
|
|
|
//#define CONFIG_DHT_PIN 2
|
|
|
|
//#define CONFIG_DHT_TYPE DHT22
|
2016-04-07 15:26:01 +02:00
|
|
|
|
2016-06-02 01:31:57 +02:00
|
|
|
//#define CONFIG_ENABLE_DRY_SENSOR
|
|
|
|
//If the dry sensor is powered by a GPIO, this GPIO could be defined here
|
|
|
|
//#define CONFIG_DRY_POWER_PIN 13
|
|
|
|
|
2016-04-01 01:06:13 +02:00
|
|
|
// Enable light sleep to save some power (http://bbs.espressif.com/viewtopic.php?f=6&t=133&p=485&hilit=sleep+modem#p485)
|
2016-06-09 21:37:59 +02:00
|
|
|
#define CONFIG_ENABLE_POWER_SAVE
|
2016-04-01 01:06:13 +02:00
|
|
|
|
2016-06-01 01:16:01 +02:00
|
|
|
// Disable mDNS can also save power
|
2016-06-01 01:22:47 +02:00
|
|
|
#define CONFIG_ENABLE_MDNS
|
2016-04-07 15:46:32 +02:00
|
|
|
|
2016-11-16 00:00:47 +01:00
|
|
|
// Long press on this button will put device in setup mode at runtime
|
|
|
|
#define CONFIG_SETUP_BUTTON 0
|
|
|
|
|
2021-02-18 00:25:45 +01:00
|
|
|
// Teleinfo https://github.com/hallard/LibTeleinfo/
|
|
|
|
#define CONFIG_ENABLE_TELEINFO
|
2016-04-07 15:46:32 +02:00
|
|
|
|
2016-03-30 00:44:37 +02:00
|
|
|
/* DEFAULT VALUE ALSO DEFINED IN CONFIG.H */
|
2016-06-18 01:49:29 +02:00
|
|
|
//If this GPIO is LOW at boot, device will enter setup mode
|
2020-02-28 17:16:56 +01:00
|
|
|
#define CONFIG_SETUP_GPIO 14 //D5
|
2016-03-30 00:44:37 +02:00
|
|
|
|
|
|
|
// Time to sleep between 2 webserver request (increase it reduce battery usage but increase latency)
|
|
|
|
//#define CONFIG_WEB_DELAY_MS 100
|
|
|
|
|
|
|
|
// Get sensors value every X ms
|
2021-02-18 00:25:45 +01:00
|
|
|
#define CONFIG_SAMPLING_PERIODE_MS 30000
|
2016-03-30 00:44:37 +02:00
|
|
|
|
|
|
|
// Name of the SSID when in AP mode for configuration
|
2017-01-01 23:40:13 +01:00
|
|
|
#define CONFIG_SSID_NAME "ESPConfiguratorBureau"
|
2016-03-30 00:44:37 +02:00
|
|
|
|
2016-12-09 22:55:12 +01:00
|
|
|
// GPIO that can be set or get by mqtt and set via http
|
2016-03-30 00:44:37 +02:00
|
|
|
// Should have less value than MAXSUBSCRIPTIONS
|
2017-01-01 23:40:13 +01:00
|
|
|
//#define CONFIG_CONTROLLED_GPIO {12,13}
|
2016-12-09 22:55:12 +01:00
|
|
|
|
2016-12-13 22:31:14 +01:00
|
|
|
// GPIO that can be get by mqtt and http
|
2016-12-14 00:08:47 +01:00
|
|
|
// Pin 6 to 11 and 16 can not be used for mqtt
|
2017-01-01 23:40:13 +01:00
|
|
|
//#define CONFIG_OBSERVED_GPIO {5}
|
2016-12-13 22:31:14 +01:00
|
|
|
|
2016-12-09 22:55:12 +01:00
|
|
|
// GPIO used in PWM
|
|
|
|
//#define CONFIG_CONTROLLED_PWM {}
|
2016-03-30 00:49:57 +02:00
|
|
|
|
|
|
|
// EEPROM SIZE
|
2016-06-01 15:21:32 +02:00
|
|
|
// Max is 4096, but this amount will be allocated in RAM for reading its content
|
2016-03-30 00:49:57 +02:00
|
|
|
//#CONFIG_EEPROM_SIZE 256
|