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.

97 lines
2.3 KiB

6 years ago
6 years ago
6 years ago
  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_LIGHTFOX 16
  10. #define WEBUI_IMAGE_THERMOSTAT 32
  11. #define WEBUI_IMAGE_FULL 15
  12. #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
  13. #ifdef WEBUI_IMAGE
  14. #undef WEBUI_IMAGE
  15. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  16. #else
  17. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHT
  18. #endif
  19. #endif
  20. #if SENSOR_SUPPORT == 1
  21. #ifndef WEBUI_IMAGE
  22. #define WEBUI_IMAGE WEBUI_IMAGE_SENSOR
  23. #else
  24. #undef WEBUI_IMAGE
  25. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  26. #endif
  27. #endif
  28. #if RF_SUPPORT == 1
  29. #ifndef WEBUI_IMAGE
  30. #define WEBUI_IMAGE WEBUI_IMAGE_RFBRIDGE
  31. #else
  32. #undef WEBUI_IMAGE
  33. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  34. #endif
  35. #endif
  36. #if RFM69_SUPPORT == 1
  37. #ifndef WEBUI_IMAGE
  38. #define WEBUI_IMAGE WEBUI_IMAGE_RFM69
  39. #else
  40. #undef WEBUI_IMAGE
  41. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  42. #endif
  43. #endif
  44. #if defined(FOXEL_LIGHTFOX_DUAL)
  45. #ifdef WEBUI_IMAGE
  46. #undef WEBUI_IMAGE
  47. #endif
  48. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHTFOX
  49. #endif
  50. #if THERMOSTAT_SUPPORT == 1
  51. #ifndef WEBUI_IMAGE
  52. #define WEBUI_IMAGE WEBUI_IMAGE_THERMOSTAT
  53. #else
  54. #undef WEBUI_IMAGE
  55. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  56. #endif
  57. #endif
  58. #ifndef WEBUI_IMAGE
  59. #define WEBUI_IMAGE WEBUI_IMAGE_SMALL
  60. #endif
  61. #include <pgmspace.h>
  62. PROGMEM const char espurna_webui[] =
  63. #if WEBUI_IMAGE == WEBUI_IMAGE_SMALL
  64. "SMALL"
  65. #endif
  66. #if WEBUI_IMAGE == WEBUI_IMAGE_LIGHT
  67. "LIGHT"
  68. #endif
  69. #if WEBUI_IMAGE == WEBUI_IMAGE_SENSOR
  70. "SENSOR"
  71. #endif
  72. #if WEBUI_IMAGE == WEBUI_IMAGE_RFBRIDGE
  73. "RFBRIDGE"
  74. #endif
  75. #if WEBUI_IMAGE == WEBUI_IMAGE_RFM69
  76. "RFM69"
  77. #endif
  78. #if WEBUI_IMAGE == WEBUI_IMAGE_LIGHTFOX
  79. "LIGHTFOX"
  80. #endif
  81. #if WEBUI_IMAGE == WEBUI_IMAGE_THERMOSTAT
  82. "THERMOSTAT"
  83. #endif
  84. #if WEBUI_IMAGE == WEBUI_IMAGE_FULL
  85. "FULL"
  86. #endif
  87. "";