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.

50 lines
1.3 KiB

  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_FULL 15
  10. #if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
  11. #ifdef WEBUI_IMAGE
  12. #undef WEBUI_IMAGE
  13. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  14. #else
  15. #define WEBUI_IMAGE WEBUI_IMAGE_LIGHT
  16. #endif
  17. #endif
  18. #if SENSOR_SUPPORT == 1
  19. #ifndef WEBUI_IMAGE
  20. #define WEBUI_IMAGE WEBUI_IMAGE_SENSOR
  21. #else
  22. #undef WEBUI_IMAGE
  23. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  24. #endif
  25. #endif
  26. #if defined(ITEAD_SONOFF_RFBRIDGE)
  27. #ifndef WEBUI_IMAGE
  28. #define WEBUI_IMAGE WEBUI_IMAGE_RFBRIDGE
  29. #else
  30. #undef WEBUI_IMAGE
  31. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  32. #endif
  33. #endif
  34. #if RFM69_SUPPORT == 1
  35. #ifndef WEBUI_IMAGE
  36. #define WEBUI_IMAGE WEBUI_IMAGE_RFM69
  37. #else
  38. #undef WEBUI_IMAGE
  39. #define WEBUI_IMAGE WEBUI_IMAGE_FULL
  40. #endif
  41. #endif
  42. #ifndef WEBUI_IMAGE
  43. #define WEBUI_IMAGE WEBUI_IMAGE_SMALL
  44. #endif