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.

81 lines
1.9 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_THERMOSTAT 32
  12. #define WEBUI_IMAGE_CURTAIN 64
  13. #define WEBUI_IMAGE_FULL 15
  14. #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
  15. #ifdef WEBUI_IMAGE
  16. #undef WEBUI_IMAGE
  17. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  18. #else
  19. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHT
  20. #endif
  21. #endif
  22. #if SENSOR_SUPPORT == 1
  23. #ifndef WEBUI_IMAGE
  24. #define WEBUI_IMAGE WEBUI_IMAGE_SENSOR
  25. #else
  26. #undef WEBUI_IMAGE
  27. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  28. #endif
  29. #endif
  30. #if RFB_SUPPORT == 1
  31. #ifndef WEBUI_IMAGE
  32. #define WEBUI_IMAGE WEBUI_IMAGE_RFBRIDGE
  33. #else
  34. #undef WEBUI_IMAGE
  35. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  36. #endif
  37. #endif
  38. #if RFM69_SUPPORT == 1
  39. #ifndef WEBUI_IMAGE
  40. #define WEBUI_IMAGE WEBUI_IMAGE_RFM69
  41. #else
  42. #undef WEBUI_IMAGE
  43. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  44. #endif
  45. #endif
  46. #if defined(FOXEL_LIGHTFOX_DUAL)
  47. #ifdef WEBUI_IMAGE
  48. #undef WEBUI_IMAGE
  49. #endif
  50. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHTFOX
  51. #endif
  52. #if THERMOSTAT_SUPPORT == 1
  53. #ifndef WEBUI_IMAGE
  54. #define WEBUI_IMAGE WEBUI_IMAGE_THERMOSTAT
  55. #else
  56. #undef WEBUI_IMAGE
  57. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  58. #endif
  59. #endif
  60. #if CURTAIN_SUPPORT == 1
  61. #ifndef WEBUI_IMAGE
  62. #define WEBUI_IMAGE WEBUI_IMAGE_CURTAIN
  63. #else
  64. #undef WEBUI_IMAGE
  65. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  66. #endif
  67. #endif
  68. #ifndef WEBUI_IMAGE
  69. #define WEBUI_IMAGE WEBUI_IMAGE_SMALL
  70. #endif