mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-13 11:47:29 +01:00
Port of https://github.com/Vasil-Pahomov/ArWs2812 from Arduino to ESP8266 Implementing garland of WS2812 Co-authored-by: Dmitry Blinov <dblinov@blackberry.com>
92 lines
2.1 KiB
C
92 lines
2.1 KiB
C
// -----------------------------------------------------------------------------
|
|
// WEB UI IMAGE
|
|
// -----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#define WEBUI_IMAGE_SMALL 0
|
|
#define WEBUI_IMAGE_LIGHT 1
|
|
#define WEBUI_IMAGE_SENSOR 2
|
|
#define WEBUI_IMAGE_RFBRIDGE 4
|
|
#define WEBUI_IMAGE_RFM69 8
|
|
#define WEBUI_IMAGE_LIGHTFOX 16
|
|
#define WEBUI_IMAGE_GARLAND 31
|
|
#define WEBUI_IMAGE_THERMOSTAT 32
|
|
#define WEBUI_IMAGE_CURTAIN 64
|
|
#define WEBUI_IMAGE_FULL 15
|
|
|
|
#if LIGHT_PROVIDER != LIGHT_PROVIDER_NONE
|
|
#ifdef WEBUI_IMAGE
|
|
#undef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_FULL
|
|
#else
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_LIGHT
|
|
#endif
|
|
#endif
|
|
|
|
#if SENSOR_SUPPORT == 1
|
|
#ifndef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_SENSOR
|
|
#else
|
|
#undef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_FULL
|
|
#endif
|
|
#endif
|
|
|
|
#if RFB_SUPPORT == 1
|
|
#ifndef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_RFBRIDGE
|
|
#else
|
|
#undef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_FULL
|
|
#endif
|
|
#endif
|
|
|
|
#if RFM69_SUPPORT == 1
|
|
#ifndef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_RFM69
|
|
#else
|
|
#undef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_FULL
|
|
#endif
|
|
#endif
|
|
|
|
#if defined(FOXEL_LIGHTFOX_DUAL)
|
|
#ifdef WEBUI_IMAGE
|
|
#undef WEBUI_IMAGE
|
|
#endif
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_LIGHTFOX
|
|
#endif
|
|
|
|
#if GARLAND_SUPPORT == 1
|
|
#ifndef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_GARLAND
|
|
#else
|
|
#undef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_FULL
|
|
#endif
|
|
#endif
|
|
|
|
#if THERMOSTAT_SUPPORT == 1
|
|
#ifndef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_THERMOSTAT
|
|
#else
|
|
#undef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_FULL
|
|
#endif
|
|
#endif
|
|
|
|
#if CURTAIN_SUPPORT == 1
|
|
#ifndef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_CURTAIN
|
|
#else
|
|
#undef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_FULL
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef WEBUI_IMAGE
|
|
#define WEBUI_IMAGE WEBUI_IMAGE_SMALL
|
|
#endif
|
|
|