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.

84 lines
2.0 KiB

5 years ago
5 years ago
5 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_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 defined(FOXEL_LIGHTFOX_DUAL)
  44. #ifdef WEBUI_IMAGE
  45. #undef WEBUI_IMAGE
  46. #endif
  47. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHTFOX
  48. #endif
  49. #ifndef WEBUI_IMAGE
  50. #define WEBUI_IMAGE WEBUI_IMAGE_SMALL
  51. #endif
  52. #include <pgmspace.h>
  53. PROGMEM const char espurna_webui[] =
  54. #if WEBUI_IMAGE == WEBUI_IMAGE_SMALL
  55. "SMALL"
  56. #endif
  57. #if WEBUI_IMAGE == WEBUI_IMAGE_LIGHT
  58. "LIGHT"
  59. #endif
  60. #if WEBUI_IMAGE == WEBUI_IMAGE_SENSOR
  61. "SENSOR"
  62. #endif
  63. #if WEBUI_IMAGE == WEBUI_IMAGE_RFBRIDGE
  64. "RFBRIDGE"
  65. #endif
  66. #if WEBUI_IMAGE == WEBUI_IMAGE_RFM69
  67. "RFM69"
  68. #endif
  69. #if WEBUI_IMAGE == WEBUI_IMAGE_LIGHTFOX
  70. "LIGHTFOX"
  71. #endif
  72. #if WEBUI_IMAGE == WEBUI_IMAGE_FULL
  73. "FULL"
  74. #endif
  75. "";