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.

91 lines
2.1 KiB

6 years ago
6 years ago
  1. // -----------------------------------------------------------------------------
  2. // WEB UI IMAGE
  3. // -----------------------------------------------------------------------------
  4. #pragma once
  5. #define WEBUI_IMAGE_SMALL 0
  6. #define WEBUI_IMAGE_LIGHT 1
  7. #define WEBUI_IMAGE_SENSOR 2
  8. #define WEBUI_IMAGE_RFBRIDGE 4
  9. #define WEBUI_IMAGE_RFM69 8
  10. #define WEBUI_IMAGE_LIGHTFOX 16
  11. #define WEBUI_IMAGE_GARLAND 31
  12. #define WEBUI_IMAGE_THERMOSTAT 32
  13. #define WEBUI_IMAGE_CURTAIN 64
  14. #define WEBUI_IMAGE_FULL 15
  15. #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
  16. #ifdef WEBUI_IMAGE
  17. #undef WEBUI_IMAGE
  18. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  19. #else
  20. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHT
  21. #endif
  22. #endif
  23. #if SENSOR_SUPPORT == 1
  24. #ifndef WEBUI_IMAGE
  25. #define WEBUI_IMAGE WEBUI_IMAGE_SENSOR
  26. #else
  27. #undef WEBUI_IMAGE
  28. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  29. #endif
  30. #endif
  31. #if RFB_SUPPORT == 1
  32. #ifndef WEBUI_IMAGE
  33. #define WEBUI_IMAGE WEBUI_IMAGE_RFBRIDGE
  34. #else
  35. #undef WEBUI_IMAGE
  36. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  37. #endif
  38. #endif
  39. #if RFM69_SUPPORT == 1
  40. #ifndef WEBUI_IMAGE
  41. #define WEBUI_IMAGE WEBUI_IMAGE_RFM69
  42. #else
  43. #undef WEBUI_IMAGE
  44. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  45. #endif
  46. #endif
  47. #if defined(FOXEL_LIGHTFOX_DUAL)
  48. #ifdef WEBUI_IMAGE
  49. #undef WEBUI_IMAGE
  50. #endif
  51. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHTFOX
  52. #endif
  53. #if GARLAND_SUPPORT == 1
  54. #ifndef WEBUI_IMAGE
  55. #define WEBUI_IMAGE WEBUI_IMAGE_GARLAND
  56. #else
  57. #undef WEBUI_IMAGE
  58. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  59. #endif
  60. #endif
  61. #if THERMOSTAT_SUPPORT == 1
  62. #ifndef WEBUI_IMAGE
  63. #define WEBUI_IMAGE WEBUI_IMAGE_THERMOSTAT
  64. #else
  65. #undef WEBUI_IMAGE
  66. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  67. #endif
  68. #endif
  69. #if CURTAIN_SUPPORT == 1
  70. #ifndef WEBUI_IMAGE
  71. #define WEBUI_IMAGE WEBUI_IMAGE_CURTAIN
  72. #else
  73. #undef WEBUI_IMAGE
  74. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  75. #endif
  76. #endif
  77. #ifndef WEBUI_IMAGE
  78. #define WEBUI_IMAGE WEBUI_IMAGE_SMALL
  79. #endif