Advertisement
meingraham

Tasmota user_config_override

Aug 2nd, 2019
7,116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 23.05 KB | None | 0 0
  1. #ifndef _USER_CONFIG_OVERRIDE_H_
  2. #define _USER_CONFIG_OVERRIDE_H_
  3.  
  4. // force the compiler to show a warning to confirm that this file is included
  5. #warning **** user_config_override.h: Using Settings from this File ****
  6.  
  7. // -- Master parameter control --------------------
  8. #undef  CFG_HOLDER
  9. #define CFG_HOLDER        4617                   // [Reset 1] Change this value to load SECTION1 configuration parameters to flash
  10.  
  11. // Generic Parameters (e.g., Gitpod)
  12. #ifdef WIFI_CONFIG_TOOL
  13.   #undef WIFI_CONFIG_TOOL
  14. #endif
  15. #define WIFI_CONFIG_TOOL       WIFI_MANAGER      // [WifiConfig] Default tool if wifi fails to connect
  16.                                                  //   (WIFI_RESTART/0, WIFI_MANAGER/2, WIFI_RETRY/4, WIFI_WAIT/5, WIFI_SERIAL/6, WIFI_MANAGER_RESET_ONLY/7)
  17.                                                  //   (6.6.0.21 not supported: WIFI_SMARTCONFIG/1, WIFI_WPSCONFIG/3)
  18.  
  19. #ifdef WIFI_CONFIG_NO_SSID
  20.   #undef WIFI_CONFIG_NO_SSID
  21. #endif
  22. #define WIFI_CONFIG_NO_SSID    WIFI_MANAGER      // Default tool if wifi fails to connect and no SSID is configured
  23.                                                  //   (WIFI_MANAGER, WIFI_SERIAL)
  24.  
  25. #ifdef MQTT_LOG_LEVEL
  26.   #undef MQTT_LOG_LEVEL
  27. #endif
  28. #define MQTT_LOG_LEVEL         LOG_LEVEL_NONE    // [MqttLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL)
  29. #ifdef SYS_LOG_LEVEL
  30.   #undef SYS_LOG_LEVEL
  31. #endif
  32. #define SYS_LOG_LEVEL          LOG_LEVEL_NONE    // [SysLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL)
  33. #ifdef SERIAL_LOG_LEVEL
  34.   #undef SERIAL_LOG_LEVEL
  35. #endif
  36. #define SERIAL_LOG_LEVEL       LOG_LEVEL_INFO    // [SerialLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL)
  37. #ifdef WEB_LOG_LEVEL
  38.   #undef WEB_LOG_LEVEL
  39. #endif
  40. #define WEB_LOG_LEVEL          LOG_LEVEL_INFO    // [WebLog] (LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL)
  41.  
  42. #ifdef OTA_URL
  43.   #undef OTA_URL
  44. #endif
  45. #define OTA_URL                "http://thehackbox.org/tasmota/pre-2.6/sonoff.bin"  // [OtaUrl]
  46.  
  47. // NTP Server Pool
  48. //#define NTP_SERVER1            "pool.ntp.org"       // [NtpServer1] Select first NTP server by name or IP address
  49. //#define NTP_SERVER2            "nl.pool.ntp.org"    // [NtpServer2] Select second NTP server by name or IP address
  50. //#define NTP_SERVER3            "0.nl.pool.ntp.org"  // [NtpServer3] Select third NTP server by name or IP address
  51. #ifdef NTP_SERVER1
  52.   #undef NTP_SERVER1
  53. #endif
  54. #define NTP_SERVER1            "openhabianpi"       // [NtpServer1] Select first NTP server by name or IP address
  55. #ifdef NTP_SERVER2
  56.   #undef NTP_SERVER2
  57. #endif
  58. #define NTP_SERVER2            "pool.ntp.org"       // [NtpServer2] Select second NTP server by name or IP address
  59. #ifdef NTP_SERVER3
  60.   #undef NTP_SERVER3
  61. #endif
  62. #define NTP_SERVER3            "us.pool.ntp.org"    // [NtpServer3] Select third NTP server by name or IP address
  63.  
  64. #ifdef SUNRISE_DAWN_ANGLE
  65.   #undef SUNRISE_DAWN_ANGLE
  66. #endif
  67. #define SUNRISE_DAWN_ANGLE DAWN_NORMAL       // Select desired Dawn Angle from (DAWN_NORMAL, DAWN_CIVIL, DAWN_NAUTIC, DAWN_ASTRONOMIC)
  68.  
  69. // Time zone and Daylight Saving offsets
  70. #ifdef TIME_DST_HEMISPHERE
  71.   #undef TIME_DST_HEMISPHERE
  72. #endif
  73. #define TIME_DST_HEMISPHERE    North
  74. #ifdef TIME_DST_WEEK
  75.   #undef TIME_DST_WEEK
  76. #endif
  77. #define TIME_DST_WEEK          Second
  78. #ifdef TIME_DST_DAY
  79.   #undef TIME_DST_DAY
  80. #endif
  81. #define TIME_DST_DAY           Sun
  82. #ifdef TIME_DST_MONTH
  83.   #undef TIME_DST_MONTH
  84. #endif
  85. #define TIME_DST_MONTH         Mar
  86. #ifdef TIME_DST_HOUR
  87.   #undef TIME_DST_HOUR
  88. #endif
  89. #define TIME_DST_HOUR          2
  90. #ifdef TIME_DST_OFFSET
  91.   #undef TIME_DST_OFFSET
  92. #endif
  93. #define TIME_DST_OFFSET        -240              // (UTC-4) Offset from UTC in minutes
  94. #ifdef TIME_STD_HEMISPHERE
  95.   #undef TIME_STD_HEMISPHERE
  96. #endif
  97. #define TIME_STD_HEMISPHERE    North
  98. #ifdef TIME_STD_WEEK
  99.   #undef TIME_STD_WEEK
  100. #endif
  101. #define TIME_STD_WEEK          First
  102. #ifdef TIME_STD_DAY
  103.   #undef TIME_STD_DAY
  104. #endif
  105. #define TIME_STD_DAY           Sun
  106. #ifdef TIME_STD_MONTH
  107.   #undef TIME_STD_MONTH
  108. #endif
  109. #define TIME_STD_MONTH         Nov
  110. #ifdef TIME_STD_HOUR
  111.   #undef TIME_STD_HOUR
  112. #endif
  113. #define TIME_STD_HOUR          2
  114. #ifdef TIME_STD_OFFSET
  115.   #undef TIME_STD_OFFSET
  116. #endif
  117. #define TIME_STD_OFFSET        -300              // (UTC-5) Offset from UTC in minutes
  118. #ifdef APP_TIMEZONE
  119.   #undef APP_TIMEZONE
  120. #endif
  121. #define APP_TIMEZONE           99                // 99 = use TIME_DST/TIME_STD
  122.  
  123. // Temperature units
  124. #ifdef TEMP_CONVERSION
  125.   #undef TEMP_CONVERSION
  126. #endif
  127. #define TEMP_CONVERSION        1                 // 1 = Fahrenheit
  128.  
  129. //#define BE_MINIMAL                               // Minimal version if upgrade memory gets tight (-45k code, -2k mem)
  130.  
  131. #ifdef USE_DOMOTICZ
  132.   #undef USE_DOMOTICZ
  133. #endif
  134. #ifdef USE_HOME_ASSISTANT
  135.   #undef USE_HOME_ASSISTANT
  136. #endif
  137.  
  138. #ifdef USE_KNX
  139.   #undef USE_KNX
  140. #endif
  141.  
  142. #ifdef USE_KNX_WEB_MENU
  143.   #undef USE_KNX_WEB_MENU
  144. #endif
  145.  
  146. #ifdef USE_JAVASCRIPT_ES6
  147.   #undef USE_JAVASCRIPT_ES6                       // Enable ECMAScript6 syntax using less JavaScript code bytes (fails on IE11)
  148. #endif
  149.  
  150. #ifdef USE_WEBSEND_RESPONSE
  151.   #undef USE_WEBSEND_RESPONSE                       // Enable command WebSend response message (+1k code)
  152. #endif
  153.  
  154. #ifdef USE_EMULATION_HUE
  155.   #undef USE_EMULATION_HUE
  156. #endif
  157.  
  158. #ifdef USE_EMULATION_WEMO
  159.   #undef USE_EMULATION_WEMO
  160. #endif
  161.  
  162. #ifdef USE_DISCOVERY
  163.   #undef USE_DISCOVERY
  164.   #ifdef WEBSERVER_ADVERTISE
  165.     #undef WEBSERVER_ADVERTISE
  166.   #endif
  167.   #ifdef MQTT_HOST_DISCOVERY
  168.     #undef MQTT_HOST_DISCOVERY
  169.   #endif
  170. #endif
  171.  
  172. #ifndef USE_RULES
  173.   #define USE_RULES                                // Add support for rules (+8k code)
  174. #endif
  175. #ifdef USE_RULES
  176.   #ifndef USE_EXPRESSION
  177.     #define USE_EXPRESSION                         // Add support for expression evaluation in rules (+3k2 code, +64 bytes mem)
  178.   #endif
  179.  
  180.   #ifndef SUPPORT_IF_STATEMENT
  181.     #define SUPPORT_IF_STATEMENT                 // Add support for IF statement in rules (+4k2 code, -332 bytes mem)
  182.   #endif
  183.  
  184.   #ifdef SUPPORT_MQTT_EVENT
  185.     #undef SUPPORT_MQTT_EVENT                     // Support trigger event with MQTT subscriptions (+3k5 code)
  186.   #endif
  187. #endif
  188.  
  189. #ifdef USE_SCRIPT
  190.   #undef USE_SCRIPT                               // Support for script (+17k code)
  191.  
  192.   #ifdef USE_SCRIPT_JSON_EXPORT
  193.     #undef USE_SCRIPT_JSON_EXPORT                     // >J section (publish JSON payload on TelePeriod)
  194.   #endif
  195.   #ifdef USE_SCRIPT_WEB_DISPLAY
  196.     #undef USE_SCRIPT_WEB_DISPLAY                     // >W section (modify web UI)
  197.   #endif
  198.   #ifdef USE_SCRIPT_SUB_COMMAND
  199.     #undef USE_SCRIPT_SUB_COMMAND                     // Invoking named script subroutines via the Console or MQTT
  200.   #endif
  201.   #ifdef USE_SCRIPT_HUE
  202.     #undef USE_SCRIPT_HUE                             // enable >H section (Alexa Hue emulation)
  203.   #endif
  204.   #ifdef USE_SCRIPT_STATUS
  205.     #undef USE_SCRIPT_STATUS                          // enable >U section (receive JSON payloads)
  206.   #endif
  207.   #ifdef USE_BUTTON_EVENT
  208.     #undef USE_BUTTON_EVENT                         // enable >b section (detect button state changes)
  209.   #endif
  210.   #ifdef SUPPORT_MQTT_EVENT
  211.     #undef SUPPORT_MQTT_EVENT                         // Support for subscribe unsubscribe
  212.   #endif
  213.   #ifdef SCRIPT_STRIP_COMMENTS
  214.     #undef SCRIPT_STRIP_COMMENTS                      // enables stripping comments when attempting to paste a script that is too large to fit
  215.   #endif
  216.   #ifdef USE_TOUCH_BUTTONS
  217.     #undef USE_TOUCH_BUTTONS                          // Virtual touch button support with touch displays
  218.   #endif
  219.   #ifdef USE_24C256
  220.     #undef USE_24C256                                 // Use of 24C256 I2C EEPROM to expand script buffer (defaults to 4k)
  221.   #endif
  222.   #ifdef USE_SCRIPT_FATFS
  223.     #undef USE_SCRIPT_FATFS                         // SD card support (on SPI bus). Specify CS pin (CS_PIN) number. Also enables 4k script buffer
  224.   //#define USE_SCRIPT_FATFS 4                    // Script: Add FAT FileSystem Support
  225.   #endif
  226.   #ifdef USE_SCRIPT_FATFS_EXT
  227.     #undef USE_SCRIPT_FATFS_EXT                     // Additional FS commands
  228.   #endif
  229.   #ifdef SDCARD_DIR
  230.     #undef SDCARD_DIR                               // Support for web UI for SD card directory upload and download
  231.   #endif
  232.  
  233.   #ifdef USE_SML_M
  234.     #undef USE_SML_M                                // Support for Smart Meter Interface
  235.   #endif
  236. #endif
  237.  
  238. #ifndef USE_COUNTER
  239.   #define USE_COUNTER                              // Enable inputs as counter (+0k8 code)
  240. #endif
  241.  
  242. #ifndef USE_ADC_VCC
  243.   #define USE_ADC_VCC                              // Display Vcc in Power status. Disable for use as Analog input on selected devices
  244. #endif
  245.  
  246. // -- Optional modules ----------------------------
  247. #ifdef USE_BUZZER
  248.   #undef USE_BUZZER                               // Add support for a buzzer (+0k6 code)
  249. #endif
  250. #ifdef USE_SONOFF_IFAN
  251.   #undef USE_SONOFF_IFAN                          // Support for Sonoff iFan02 and iFan03 (+2k code)
  252. #endif
  253. #ifdef USE_SONOFF_SC
  254.   #undef USE_SONOFF_SC                            // Support for Sonoff SC (+1k1 code)
  255. #endif
  256. #ifdef USE_RF_BRIDGE
  257.   #undef USE_RF_BRIDGE
  258. #endif
  259.   #ifdef USE_RF_FLASH
  260.     #undef USE_RF_FLASH
  261.   #endif
  262. #ifdef USE_SONOFF_L1
  263.   #undef USE_SONOFF_L1
  264. #endif
  265. #ifdef USE_TUYA_MCU
  266.   #undef USE_TUYA_MCU                             // Support for Tuya Serial MCU
  267.   #ifdef TUYA_DIMMER_ID
  268.     #undef TUYA_DIMMER_ID
  269.     //#define TUYA_DIMMER_ID       0                 // Default dimmer Id
  270.   #endif
  271. #endif
  272. #ifdef USE_EXS_DIMMER
  273.   #undef USE_EXS_DIMMER
  274. #endif
  275.  
  276. #ifdef USE_DS18x20
  277.   #undef USE_DS18x20
  278. #endif
  279. #ifdef USE_DS18B20
  280.   #undef USE_DS18B20
  281. #endif
  282. #ifdef USE_I2C
  283.   #undef USE_I2C
  284.  
  285.   #ifdef USE_SHT
  286.     #undef USE_SHT
  287.   #endif
  288.   #ifdef USE_HTU
  289.     #undef USE_HTU
  290.   #endif
  291.   #ifdef USE_BMP
  292.     #undef USE_BMP
  293.   #endif
  294.   #ifdef USE_BME680
  295.     #undef USE_BME680
  296.   #endif
  297.   #ifdef USE_BH1750
  298.     #undef USE_BH1750
  299.   #endif
  300.   #ifdef USE_VEML6070
  301.     #undef USE_VEML6070
  302.   #endif
  303.   #ifdef USE_ADS1115
  304.     #undef USE_ADS1115
  305.   #endif
  306. //  #ifdef USE_ADS1115_I2CDEV // Deprecated
  307. //    #undef USE_ADS1115_I2CDEV
  308. //  #endif
  309.   #ifdef USE_INA219
  310.     #undef USE_INA219
  311.   #endif
  312.   #ifdef USE_INA226
  313.     #undef USE_INA226
  314.   #endif
  315.   #ifdef USE_SHT3X
  316.     #undef USE_SHT3X
  317.   #endif
  318.   #ifdef USE_TSL2561
  319.     #undef USE_TSL2561
  320.   #endif
  321.   #ifdef USE_MGS
  322.     #undef USE_MGS
  323.   #endif
  324.   #ifdef USE_SGP30
  325.     #undef USE_SGP30
  326.   #endif
  327.   #ifdef USE_SI1145
  328.     #undef USE_SI1145
  329.   #endif
  330.   #ifdef USE_LM75AD
  331.     #undef USE_LM75AD
  332.   #endif
  333.   #ifdef USE_APDS9960
  334.     #undef USE_APDS9960
  335.   #endif
  336.   #ifdef USE_MCP230xx
  337.     #undef USE_MCP230xx
  338.   #endif
  339.   #ifdef USE_PCA9685
  340.     #undef USE_PCA9685
  341.   #endif
  342.   #ifdef USE_MPR121
  343.     #undef USE_MPR121
  344.   #endif
  345.   #ifdef USE_CCS811
  346.     #undef USE_CCS811
  347.   #endif
  348.   #ifdef USE_MPU6050
  349.     #undef USE_MPU6050
  350.   #endif
  351.   #ifdef USE_DS3231
  352.     #undef USE_DS3231
  353.   #endif
  354.   #ifdef USE_MGC3130
  355.     #undef USE_MGC3130
  356.   #endif
  357.   #ifdef USE_MAX44009
  358.     #undef USE_MAX44009
  359.   #endif
  360.   #ifdef USE_SCD30
  361.     #undef USE_SCD30
  362.   #endif
  363.   #ifdef USE_SPS30
  364.     #undef USE_SPS30
  365.   #endif
  366.   #ifdef USE_VL53L0X
  367.     #undef USE_VL53L0X
  368.   #endif
  369.   #ifdef USE_MLX90614
  370.     #undef USE_MLX90614
  371.   #endif
  372.   #ifdef USE_CHIRP
  373.     #undef USE_CHIRP
  374.   #endif
  375.   #ifdef USE_PAJ7620
  376.     #undef USE_PAJ7620
  377.   #endif
  378.   #ifdef USE_PCF8574
  379.     #undef USE_PCF8574
  380.   #endif
  381. #endif
  382.  
  383. #ifdef USE_MHZ19
  384.   #undef USE_MHZ19
  385. #endif
  386. #ifdef USE_SENSEAIR
  387.   #undef USE_SENSEAIR
  388. #endif
  389. #ifdef USE_PMS5003
  390.   #undef USE_PMS5003
  391. #endif
  392.   #ifdef PMS_MODEL_PMS3003
  393.   #undef PMS_MODEL_PMS3003
  394.   #endif
  395. #ifdef USE_NOVA_SDS
  396.   #undef USE_NOVA_SDS
  397.   #ifdef
  398.     #undef STARTING_OFFSET
  399. //    #define STARTING_OFFSET      30                // Turn on NovaSDS XX-seconds before tele_period is reached
  400.   #endif
  401. #endif
  402. #ifdef USE_SERIAL_BRIDGE
  403.   #undef USE_SERIAL_BRIDGE
  404. #endif
  405.  
  406. #ifndef USE_ENERGY_SENSOR
  407.   #define USE_ENERGY_SENSOR
  408. #endif
  409. #ifdef USE_ENERGY_SENSOR
  410.   #define USE_ENERGY_MARGIN_DETECTION              // Add support for Energy Margin detection (+1k6 code)
  411.     #define USE_ENERGY_POWER_LIMIT                 // Add additional support for Energy Power Limit detection (+1k2 code)
  412.  
  413.   #ifndef USE_HLW8012
  414.   #define USE_HLW8012
  415.   #endif
  416.   #ifndef USE_CSE7766
  417.   #define USE_CSE7766
  418.   #endif
  419.   #ifndef USE_PZEM004T
  420.   #define USE_PZEM004T
  421.   #endif
  422.   #ifdef USE_PZEM_AC
  423.     #undef USE_PZEM_AC
  424.   #endif
  425.   #ifdef USE_PZEM_DC
  426.     #undef USE_PZEM_DC
  427.   #endif
  428.   #ifdef USE_ADE7953
  429.     #undef USE_ADE7953
  430.   #endif
  431.   #ifdef USE_MCP39F501
  432.     #undef USE_MCP39F501
  433.   #endif
  434.   #ifdef USE_SDM120
  435.     #undef USE_SDM120                               // Add support for Eastron SDM120-Modbus energy monitor (+1k1 code)
  436. //    #define SDM120_SPEED         2400              // SDM120-Modbus RS485 serial speed (default: 2400 baud)
  437.   #endif
  438.   #ifdef USE_SDM120_2
  439.     #undef USE_SDM120_2
  440.   #endif
  441.   #ifdef USE_SDM220
  442.     #undef USE_SDM220
  443.   #endif
  444.   #ifdef USE_SDM630                               // Add support for Eastron SDM630-Modbus energy monitor (+0k6 code)
  445.     #undef USE_SDM630
  446. //    #define SDM630_SPEED         9600              // SDM630-Modbus RS485 serial speed (default: 9600 baud)
  447.   #endif
  448.   #ifdef USE_SDM630_2
  449.     #undef USE_SDM630_2
  450.   #endif
  451.   #ifdef USE_DDS2382                              // Add support for Hiking DDS2382 Modbus energy monitor (+0k6 code)
  452.     #undef USE_DDS2382
  453. //    #define DDS2382_SPEED        9600              // Hiking DDS2382 Modbus RS485 serial speed (default: 9600 baud)
  454.   #endif
  455.   #ifdef USE_DDSU666                              // Add support for Chint DDSU666 Modbus energy monitor (+0k6 code)
  456.     #undef USE_DDSU666
  457. //    #define DDSU666_SPEED        9600              // Chint DDSU666 Modbus RS485 serial speed (default: 9600 baud)
  458.   #endif
  459.   #ifdef USE_SOLAX_X1                             // Add support for Solax X1 series Modbus log info (+3k1 code)
  460.     #undef USE_SOLAX_X1
  461. //    #define SOLAXX1_SPEED        9600              // Solax X1 Modbus RS485 serial speed (default: 9600 baud)
  462. //    #define SOLAXX1_PV2                            // Solax X1 using second PV
  463.   #endif
  464. #endif
  465.  
  466. #ifdef USE_DHT                                  // Add support for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321) and SI7021 Temperature and Humidity sensor (1k6 code)
  467.   #undef USE_DHT
  468. #endif
  469.  
  470. #ifdef USE_MAX31855                             // Add support for MAX31855 K-Type thermocouple sensor using softSPI
  471.   #undef USE_MAX31855
  472. #endif
  473. #ifdef USE_MAX31865                             // Add support for MAX31865 RTD sensors using softSPI
  474.   #undef USE_MAX31865
  475. //  #define MAX31865_PTD_WIRES  2                 // PTDs come in several flavors. Pick yours
  476. //  #define MAX31865_PTD_RES    100               // Nominal PTD resistance at 0°C (100Ω for a PT100, 1000Ω for a PT1000, YMMV!)
  477. //  #define MAX31865_REF_RES    430               // Reference resistor (Usually 430Ω for a PT100, 4300Ω for a PT1000)
  478. //  #define MAX31865_PTD_BIAS   0                 // To calibrate your not-so-good PTD
  479. #endif
  480.  
  481. #ifdef USE_MP3_PLAYER
  482.   #undef USE_MP3_PLAYER
  483. #endif
  484. #ifdef USE_ARMTRONIX_DIMMERS
  485.   #undef USE_ARMTRONIX_DIMMERS
  486. #endif
  487. #ifdef USE_PS_16_DZ
  488.   #undef USE_PS_16_DZ
  489. #endif
  490. #ifdef ROTARY_V1
  491.   #undef ROTARY_V1
  492. #endif
  493. #ifdef USE_SHUTTER
  494.   #undef USE_SHUTTER
  495. #endif
  496. #ifdef USE_DEEPSLEEP
  497.   #undef USE_DEEPSLEEP
  498. #endif
  499.  
  500. #ifdef USE_IR_REMOTE                            // Send IR remote commands using library IRremoteESP8266 and ArduinoJson (+4k3 code, 0k3 mem, 48 iram)
  501.   #undef USE_IR_REMOTE
  502. //  #define USE_IR_SEND_AIWA                       // Support IRsend Aiwa protocol
  503. //  #define USE_IR_SEND_DISH                       // Support IRsend Dish protocol
  504. //  #define USE_IR_SEND_JVC                        // Support IRsend JVC protocol
  505. //  #define USE_IR_SEND_LG                         // Support IRsend LG protocol
  506. //  #define USE_IR_SEND_MITSUBISHI                 // Support IRsend Mitsubishi protocol
  507. //  #define USE_IR_SEND_NEC                        // Support IRsend NEC protocol
  508. //  #define USE_IR_SEND_PANASONIC                  // Support IRsend Panasonic protocol
  509. //  #define USE_IR_SEND_PIONEER                    // Support IRsend Pioneer protocol
  510. //  #define USE_IR_SEND_RC5                        // Support IRsend Philips RC5 protocol
  511. //  #define USE_IR_SEND_RC6                        // Support IRsend Philips RC6 protocol
  512. //  #define USE_IR_SEND_SAMSUNG                    // Support IRsend Samsung protocol
  513. //  #define USE_IR_SEND_SANYO                      // Support IRsend Sanyo protocol
  514. //  #define USE_IR_SEND_SHARP                      // Support IRsend Sharp protocol
  515. //  #define USE_IR_SEND_SONY                       // Support IRsend Sony protocol
  516. //  #define USE_IR_SEND_WHYNTER                    // Support IRsend Whynter protocol
  517. #endif
  518.   #ifdef USE_IR_HVAC                            // Support for HVAC systems using IR (+3k5 code)
  519.     #undef USE_IR_HVAC
  520. //    #define USE_IR_HVAC_TOSHIBA                  // Support IRhvac Toshiba protocol
  521. //    #define USE_IR_HVAC_MITSUBISHI               // Support IRhvac Mitsubischi protocol
  522. //    #define USE_IR_HVAC_LG                       // Support IRhvac LG protocol
  523. //    #define USE_IR_HVAC_FUJITSU                  // Support IRhvac Fujitsu protocol
  524. //    #define USE_IR_HVAC_MIDEA                    // Support IRhvac Midea/Komeco protocol
  525.   #endif
  526.  
  527. #ifdef USE_IR_RECEIVE                         // Support for IR receiver (+7k2 code, 264 iram)
  528.   #undef USE_IR_RECEIVE
  529. //  #define IR_RCV_BUFFER_SIZE      100          // Max number of packets allowed in capture buffer (default 100 (*2 bytes ram))
  530. //  #define IR_RCV_TIMEOUT          15           // Number of milli-Seconds of no-more-data before we consider a message ended (default 15)
  531. //  #define IR_RCV_MIN_UNKNOWN_SIZE 6            // Set the smallest sized "UNKNOWN" message packets we actually care about (default 6, max 255)
  532. #endif
  533.  
  534. #ifdef USE_ZIGBEE
  535.   #undef USE_ZIGBEE
  536.   #define USE_ZIGBEE_PANID  0x1A63                // arbitrary PAN ID for Zigbee network, must be unique in the home
  537.   #define USE_ZIGBEE_EXTPANID 0xCCCCCCCCCCCCCCCCL // arbitrary extended PAN ID
  538.   #define USE_ZIGBEE_CHANNEL  11                  // Zigbee Channel (11-26)
  539.   #define USE_ZIGBEE_PRECFGKEY_L 0x0F0D0B0907050301L  // note: changing requires to re-pair all devices
  540.   #define USE_ZIGBEE_PRECFGKEY_H 0x0D0C0A0806040200L  // note: changing requires to re-pair all devices
  541.   #define USE_ZIGBEE_PERMIT_JOIN false           // don't allow joining by default
  542. #endif
  543.  
  544. #ifdef USE_SM2135
  545.   #undef USE_SM2135
  546. #endif
  547. #ifdef USE_WS2812
  548.   #undef USE_WS2812
  549.   #define USE_WS2812_HARDWARE NEO_HW_WS2812       // Select hardware type - NEO_HW_WS2812, NEO_HW_WS2812X, NEO_HW_WS2813, NEO_HW_SK6812, NEO_HW_LC8812, NEO_HW_APA106 (DMA mode only)
  550. #endif
  551.   #ifdef USE_WS2812_DMA
  552.     #undef USE_WS2812_DMA
  553.   #endif
  554. #ifdef USE_MY92X1
  555.   #undef USE_MY92X1
  556. #endif
  557. #ifdef USE_ARILUX_RF
  558.   #undef USE_ARILUX_RF
  559. #endif
  560. #ifdef USE_SR04
  561.   #undef USE_SR04
  562. #endif
  563. #ifdef USE_TM1638
  564.   #undef USE_TM1638
  565. #endif
  566. #ifdef USE_HX711
  567.   #undef USE_HX711
  568. #endif
  569.   #ifdef USE_HX711_GUI
  570.     #undef USE_HX711_GUI
  571.   #endif
  572. #ifdef USE_TX20_WIND_SENSOR
  573.   #undef USE_TX20_WIND_SENSOR
  574. #endif
  575. #ifdef USE_RC_SWITCH
  576.   #undef USE_RC_SWITCH
  577. #endif
  578. #ifdef USE_RF_SENSOR
  579.   #undef USE_RF_SENSOR
  580. #endif
  581.   #ifdef USE_THEO_V2
  582.     #undef USE_THEO_V2
  583.   #endif
  584.   #ifdef USE_ALECTO_V2
  585.     #undef USE_ALECTO_V2
  586.   #endif
  587. #ifdef USE_SM16716
  588.   #undef USE_SM16716
  589. #endif
  590. #ifdef USE_HRE
  591.   #undef USE_HRE                                  // Support for Badger HR-E Water Meter (+1k4 code)
  592. #endif
  593. #ifdef USE_A4988_STEPPER
  594.   #undef USE_A4988_STEPPER                        // Support for A4988 stepper-motor-driver-circuit (+10k5 code)
  595. #endif
  596.  
  597. //#define DISPLAY_CONFIG  // -- Enable Display driver --
  598. #ifdef DISPLAY_CONFIG  // ---------------------------------------------------------------------------
  599.   #undef  USE_SPI
  600.   #define USE_DISPLAY
  601.  
  602.   #ifdef  USE_DISPLAY_MODES1TO5
  603.     #undef  USE_DISPLAY_MODES1TO5                // Disable display mode 1 to 5 in addition to mode 0
  604.   #endif
  605.  
  606. // Choose your display type by selecting the appropriate block of settings
  607.  
  608.   // LCD display (I2C addresses 0x27 and 0x3F)
  609.   #ifndef USE_DISPLAY_LCD                      // Enable
  610.     #define USE_DISPLAY_LCD
  611.   #endif
  612. //  #ifdef USE_DISPLAY_LCD                       // Disable
  613. //    #undef USE_DISPLAY_LCD
  614. //  #endif
  615.  
  616.   // OLED 128x64 display (I2C addresses 0x3C and 0x3D)
  617. //  #ifndef USE_DISPLAY_SSD1306                  // Enable
  618. //    #define USE_DISPLAY_SSD1306
  619. //  #endif
  620.   #ifdef USE_DISPLAY_SSD1306                   // Disable
  621.     #undef USE_DISPLAY_SSD1306
  622.   #endif
  623.  
  624.   // OLED SH1106 display (I2C addresses 0x3C and 0x3D)
  625. //  #ifndef USE_DISPLAY_SSD1306                  // Enable
  626. //    #define USE_DISPLAY_SSD1306
  627. //  #endif
  628.   #ifdef USE_DISPLAY_SH1106                   // Disable
  629.     #undef USE_DISPLAY_SH1106
  630.   #endif
  631.  
  632.   // 8x8 Matrix display
  633. //  #ifndef USE_DISPLAY_MATRIX                   // Enable
  634. //    #define USE_DISPLAY_MATRIX
  635. //  #endif
  636.   #ifdef USE_DISPLAY_MATRIX                    // Disable
  637.     #undef USE_DISPLAY_MATRIX
  638.   #endif
  639.  
  640.   // [DisplayModel 4] ILI9341 TFT 480x320 display (+19k code)
  641. //  #ifndef USE_DISPLAY_ILI9341                  // Enable
  642. //    #define USE_DISPLAY_ILI9341
  643. //    #define USE_SPI
  644. //  #endif
  645.   #ifdef USE_DISPLAY_ILI9341                   // Disable
  646.     #undef USE_DISPLAY_ILI9341
  647.   #endif
  648.  
  649.   // e-paper display (choose 29 or 42)
  650. //  #ifndef USE_DISPLAY_EPAPER                   // Enable
  651. //    #define USE_SPI
  652. //    #define SHOW_SPLASH  
  653. //    #define USE_DISPLAY_EPAPER
  654. //    #define USE_DISPLAY_EPAPER_29                // [DisplayModel 5] e-paper 2.9 inch display (+19k code)
  655. //    #define USE_DISPLAY_EPAPER_42                // [DisplayModel 6] e-paper 4.2 inch display
  656. //  #endif
  657.   #ifdef  USE_DISPLAY_EPAPER                   // Disable
  658.     #undef USE_DISPLAY_EPAPER
  659.     #undef USE_DISPLAY_EPAPER_29
  660.     #undef USE_DISPLAY_EPAPER_42
  661.   #endif
  662.  
  663.   // [DisplayModel 8] ILI9488
  664. //  #ifndef USE_DISPLAY_ILI9488                  // Enable
  665. //    #define USE_SPI
  666. //    #define USE_DISPLAY_ILI9488
  667. //  #endif
  668.   #ifdef USE_DISPLAY_ILI9488                   // Disable
  669.     #undef USE_DISPLAY_ILI9488
  670.   #endif
  671.  
  672.   // [DisplayModel 9] SSD1351
  673. //  #ifndef USE_DISPLAY_SSD1351                  // Enable
  674. //    #define USE_SPI
  675. //    #define USE_DISPLAY_SSD1351
  676. //  #endif
  677.   #ifdef USE_DISPLAY_SSD1351                   // Disable
  678.     #undef USE_DISPLAY_SSD1351
  679.   #endif
  680.  
  681.   // [DisplayModel 10] RA8876
  682. //  #ifndef USE_DISPLAY_RA8876                   // Enable
  683. //    #define USE_SPI
  684. //    #define USE_DISPLAY_RA8876
  685. //  #endif
  686.   #ifdef USE_DISPLAY_RA8876                    // Disable
  687.     #undef USE_DISPLAY_RA8876
  688.   #endif
  689.  
  690. #endif  // DISPLAY_CONFIG ----------------------------------------------------------------------------
  691.  
  692. #endif  // _USER_CONFIG_OVERRIDE_H_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement