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.

71 lines
1.7 KiB

5 years ago
5 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_FULL 15
  13. #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
  14. #ifdef WEBUI_IMAGE
  15. #undef WEBUI_IMAGE
  16. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  17. #else
  18. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHT
  19. #endif
  20. #endif
  21. #if SENSOR_SUPPORT == 1
  22. #ifndef WEBUI_IMAGE
  23. #define WEBUI_IMAGE WEBUI_IMAGE_SENSOR
  24. #else
  25. #undef WEBUI_IMAGE
  26. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  27. #endif
  28. #endif
  29. #if RF_SUPPORT == 1
  30. #ifndef WEBUI_IMAGE
  31. #define WEBUI_IMAGE WEBUI_IMAGE_RFBRIDGE
  32. #else
  33. #undef WEBUI_IMAGE
  34. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  35. #endif
  36. #endif
  37. #if RFM69_SUPPORT == 1
  38. #ifndef WEBUI_IMAGE
  39. #define WEBUI_IMAGE WEBUI_IMAGE_RFM69
  40. #else
  41. #undef WEBUI_IMAGE
  42. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  43. #endif
  44. #endif
  45. #if defined(FOXEL_LIGHTFOX_DUAL)
  46. #ifdef WEBUI_IMAGE
  47. #undef WEBUI_IMAGE
  48. #endif
  49. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHTFOX
  50. #endif
  51. #if THERMOSTAT_SUPPORT == 1
  52. #ifndef WEBUI_IMAGE
  53. #define WEBUI_IMAGE WEBUI_IMAGE_THERMOSTAT
  54. #else
  55. #undef WEBUI_IMAGE
  56. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  57. #endif
  58. #endif
  59. #ifndef WEBUI_IMAGE
  60. #define WEBUI_IMAGE WEBUI_IMAGE_SMALL
  61. #endif