Kod: Zaznacz cały
#if
Kod: Zaznacz cały
#elif
Kod: Zaznacz cały
#ifdef
Kod: Zaznacz cały
#if
Kod: Zaznacz cały
#elif
Kod: Zaznacz cały
#ifdef
Teraz wszystko pięknie się kompiluje.
Kod: Zaznacz cały
#ifndef GUI_Generic_Config_h
#define GUI_Generic_Config_h
// ##### User configuration #####
#define USE_CUSTOM
#ifdef USE_CUSTOM
#define BUILD_VERSION "GUI 4.12.4.2"
#define TEMPLATE_BOARD_OLD
// #define TEMPLATE_BOARD_JSON
#ifdef TEMPLATE_BOARD_JSON
#define TEMPLATE_JSON "{\"NAME\":\"Shelly 2.5\",\"GPIO\":[320,0,32,0,224,193,0,0,640,192,608,225,3456,4736]}"
#elif defined(TEMPLATE_BOARD_OLD)
// #define DEFAULT_TEMPLATE_BOARD BOARD_SHELLY2
#endif
// #define DEBUG_MODE
#define SUPLA_OTA
// #define SUPLA_MDNS
#define SUPLA_ENABLE_GUI
#define SUPLA_ENABLE_SSL
// Language en - english, pl - polish (default if not defined UI_LANGUAGE), es- spanish, fr - french, de - german,
// #define UI_LANGUAGE de
#define SUPLA_RELAY
#define SUPLA_CONDITIONS
#define SUPLA_BUTTON
#define SUPLA_ACTION_TRIGGER
#define SUPLA_LIMIT_SWITCH
// #define SUPLA_ROLLERSHUTTER
#define SUPLA_CONFIG
#define SUPLA_LED
// ##### 1Wire #####
#define SUPLA_DS18B20
// #define SUPLA_DHT11
#define SUPLA_DHT22
#define SUPLA_SI7021_SONOFF
// ##### i2c #####
#define SUPLA_BME280
// #define SUPLA_BMP280
#define SUPLA_SHT3x
#define SUPLA_SI7021
#define SUPLA_OLED
// #define SUPLA_MCP23017
// #define SUPLA_VL53L0X
// #define SUPLA_HDC1080
#define SUPLA_LCD_HD44780
// ##### SPI #####
#define SUPLA_MAX6675
#define SUPLA_MAX31855
// ##### Other #####
#define SUPLA_HC_SR04
#define SUPLA_IMPULSE_COUNTER
#define SUPLA_HLW8012
#define SUPLA_RGBW
// #define SUPLA_PUSHOVER
// #define SUPLA_DIRECT_LINKS
#define SUPLA_PZEM_V_3
#define SUPLA_CSE7766
#define SUPLA_DEEP_SLEEP
#define SUPLA_DIRECT_LINKS_SENSOR_THERMOMETR
// #define SUPLA_RF_BRIDGE
// ##### Analog #####
#define SUPLA_NTC_10K
#define SUPLA_MPX_5XXX
#define SUPLA_ANALOG_READING_MAP
#endif // USE_CUSTOM
#ifndef DEBUG_MODE
#define supla_lib_config_h_ // silences unnecessary debug messages "should be disabled by default"
#endif
#ifndef TEMPLATE_BOARD_OLD
#define TEMPLATE_BOARD_JSON
#endif
#endif // GUI-Generic_Config_h
Kod: Zaznacz cały
#ifndef GUI_Generic_Config_h
#define GUI_Generic_Config_h
// ##### User configuration #####
#define USE_CUSTOM
#ifdef USE_CUSTOM
#define BUILD_VERSION "GUI 4.12.4.2"
#define TEMPLATE_BOARD_OLD
#define DEFAULT_TEMPLATE_BOARD BOARD_SHELLY2
// #define DEBUG_MODE
#define SUPLA_OTA
// #define SUPLA_MDNS
#define SUPLA_ENABLE_GUI
#define SUPLA_ENABLE_SSL
// Language en - english, pl - polish (default if not defined UI_LANGUAGE), es- spanish, fr - french, de - german,
// #define UI_LANGUAGE de
#define SUPLA_RELAY
#define SUPLA_CONDITIONS
#define SUPLA_BUTTON
#define SUPLA_ACTION_TRIGGER
#define SUPLA_LIMIT_SWITCH
// #define SUPLA_ROLLERSHUTTER
#define SUPLA_CONFIG
#define SUPLA_LED
// ##### 1Wire #####
#define SUPLA_DS18B20
// #define SUPLA_DHT11
#define SUPLA_DHT22
#define SUPLA_SI7021_SONOFF
// ##### i2c #####
#define SUPLA_BME280
// #define SUPLA_BMP280
#define SUPLA_SHT3x
#define SUPLA_SI7021
#define SUPLA_OLED
// #define SUPLA_MCP23017
// #define SUPLA_VL53L0X
// #define SUPLA_HDC1080
#define SUPLA_LCD_HD44780
// ##### SPI #####
#define SUPLA_MAX6675
#define SUPLA_MAX31855
// ##### Other #####
#define SUPLA_HC_SR04
#define SUPLA_IMPULSE_COUNTER
#define SUPLA_HLW8012
#define SUPLA_RGBW
// #define SUPLA_PUSHOVER
// #define SUPLA_DIRECT_LINKS
#define SUPLA_PZEM_V_3
#define SUPLA_CSE7766
#define SUPLA_DEEP_SLEEP
#define SUPLA_DIRECT_LINKS_SENSOR_THERMOMETR
// #define SUPLA_RF_BRIDGE
// ##### Analog #####
#define SUPLA_NTC_10K
#define SUPLA_MPX_5XXX
#define SUPLA_ANALOG_READING_MAP
#endif // USE_CUSTOM
#endif // GUI-Generic_Config_h
Kod: Zaznacz cały
#ifndef GUI_Generic_Config_h
#define GUI_Generic_Config_h
// ##### User configuration #####
#define USE_CUSTOM
#ifdef USE_CUSTOM
#define BUILD_VERSION "GUI 4.14.4"
#define TEMPLATE_BOARD_OLD
// #define TEMPLATE_BOARD_JSON
// #ifdef TEMPLATE_BOARD_JSON
// #define TEMPLATE_JSON "{\"NAME\":\"Shelly 2.5\",\"GPIO\":[320,0,32,0,224,193,0,0,640,192,608,225,3456,4736]}"
// #elif defined(TEMPLATE_BOARD_OLD)
// #define DEFAULT_TEMPLATE_BOARD BOARD_SHELLY2
// #endif
// #define DEBUG_MODE
#define SUPLA_OTA
// #define SUPLA_MDNS
#define SUPLA_ENABLE_GUI
#define SUPLA_ENABLE_SSL
// Language en - english, pl - polish (default if not defined UI_LANGUAGE), es- spanish, fr - french, de - german,
// #define UI_LANGUAGE de
#define SUPLA_RELAY
#define SUPLA_CONDITIONS
#define SUPLA_BUTTON
#define SUPLA_ACTION_TRIGGER
#define SUPLA_LIMIT_SWITCH
// #define SUPLA_ROLLERSHUTTER
#define SUPLA_CONFIG
#define SUPLA_LED
// ##### 1Wire #####
#define SUPLA_DS18B20
// #define SUPLA_DHT11
#define SUPLA_DHT22
#define SUPLA_SI7021_SONOFF
// ##### i2c #####
#define SUPLA_BME280
// #define SUPLA_BMP280
#define SUPLA_SHT3x
#define SUPLA_SHT_AUTODETECT
#define SUPLA_SI7021
#define SUPLA_OLED
// #define SUPLA_MCP23017
// #define SUPLA_PCF8575
// #define SUPLA_PCF8574
// #define SUPLA_VL53L0X
// #define SUPLA_HDC1080
#define SUPLA_LCD_HD44780
// ##### SPI #####
#define SUPLA_MAX6675
#define SUPLA_MAX31855
// ##### Other #####
#define SUPLA_HC_SR04
#define SUPLA_IMPULSE_COUNTER
#define SUPLA_HLW8012
#define SUPLA_RGBW
// #define SUPLA_PUSHOVER
// #define SUPLA_DIRECT_LINKS
#define SUPLA_PZEM_V_3
#define SUPLA_CSE7766
#define SUPLA_DEEP_SLEEP
#define SUPLA_DIRECT_LINKS_SENSOR_THERMOMETR
// #define SUPLA_RF_BRIDGE
// #define SUPLA_ADE7953
// #define SUPLA_PMSX003
// #define SUPLA_VINDRIKTNING_IKEA
// ##### Analog #####
#define SUPLA_NTC_10K
#define SUPLA_MPX_5XXX
#define SUPLA_ANALOG_READING_MAP
#endif // USE_CUSTOM
#endif // GUI-Generic_Config_h
Kod: Zaznacz cały
UWAGA: biblioteka NewPing działa na architekturze(/architekturach) avr, arm i może nie być kompatybilna z obecną płytką która działa na architekturze(/architekturach) esp8266.
UWAGA: biblioteka Arduino-HD44780 działa na architekturze(/architekturach) avr i może nie być kompatybilna z obecną płytką która działa na architekturze(/architekturach) esp8266.
c:/users/patrycjusz/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\SuplaWebPageTools.cpp.o: in function `_Z11handleToolsi':
sketch/SuplaWebPageTools.cpp:92: undefined reference to `_Z19chooseTemplateBoardh'
c:/users/patrycjusz/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\SuplaWebPageTools.cpp.o: in function `_ZN6StringD4Ev':
C:\Users\Patrycjusz\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/WString.h:79: undefined reference to `_Z19chooseTemplateBoardh'
collect2.exe: error: ld returned 1 exit status
exit status 1
Błąd kompilacji dla płytki Generic ESP8266 Module.