Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.0 KiB

  1. // -----------------------------------------------------------------------------
  2. // WEB UI IMAGE
  3. // -----------------------------------------------------------------------------
  4. #define WEBUI_IMAGE_SMALL 0
  5. #define WEBUI_IMAGE_LIGHT 1
  6. #define WEBUI_IMAGE_SENSOR 2
  7. #define WEBUI_IMAGE_RFBRIDGE 4
  8. #define WEBUI_IMAGE_RFM69 8
  9. #define WEBUI_IMAGE_THERMOSTAT 9
  10. #define WEBUI_IMAGE_FULL 15
  11. #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
  12. #ifdef WEBUI_IMAGE
  13. #undef WEBUI_IMAGE
  14. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  15. #else
  16. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHT
  17. #endif
  18. #endif
  19. #if SENSOR_SUPPORT == 1
  20. #ifndef WEBUI_IMAGE
  21. #define WEBUI_IMAGE WEBUI_IMAGE_SENSOR
  22. #else
  23. #undef WEBUI_IMAGE
  24. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  25. #endif
  26. #endif
  27. #if defined(ITEAD_SONOFF_RFBRIDGE)
  28. #ifndef WEBUI_IMAGE
  29. #define WEBUI_IMAGE WEBUI_IMAGE_RFBRIDGE
  30. #else
  31. #undef WEBUI_IMAGE
  32. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  33. #endif
  34. #endif
  35. #if RFM69_SUPPORT == 1
  36. #ifndef WEBUI_IMAGE
  37. #define WEBUI_IMAGE WEBUI_IMAGE_RFM69
  38. #else
  39. #undef WEBUI_IMAGE
  40. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  41. #endif
  42. #endif
  43. #if THERMOSTAT_SUPPORT == 1
  44. #ifndef WEBUI_IMAGE
  45. #define WEBUI_IMAGE WEBUI_IMAGE_THERMOSTAT
  46. #else
  47. #undef WEBUI_IMAGE
  48. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  49. #endif
  50. #endif
  51. #ifndef WEBUI_IMAGE
  52. #define WEBUI_IMAGE WEBUI_IMAGE_SMALL
  53. #endif
  54. #include <pgmspace.h>
  55. PROGMEM const char espurna_webui[] =
  56. #if WEBUI_IMAGE == WEBUI_IMAGE_SMALL
  57. "SMALL"
  58. #endif
  59. #if WEBUI_IMAGE == WEBUI_IMAGE_LIGHT
  60. "LIGHT"
  61. #endif
  62. #if WEBUI_IMAGE == WEBUI_IMAGE_SENSOR
  63. "SENSOR"
  64. #endif
  65. #if WEBUI_IMAGE == WEBUI_IMAGE_RFBRIDGE
  66. "RFBRIDGE"
  67. #endif
  68. #if WEBUI_IMAGE == WEBUI_IMAGE_RFM69
  69. "RFM69"
  70. #endif
  71. #if WEBUI_IMAGE == WEBUI_IMAGE_THERMOSTAT
  72. "THERMOSTAT"
  73. #endif
  74. #if WEBUI_IMAGE == WEBUI_IMAGE_FULL
  75. "FULL"
  76. #endif
  77. "";