diff --git a/components/ehmtxv2/EHMTX.h b/components/ehmtxv2/EHMTX.h index 2fda3cd..7b513a9 100644 --- a/components/ehmtxv2/EHMTX.h +++ b/components/ehmtxv2/EHMTX.h @@ -1,9 +1,6 @@ #ifndef EHMTX_H #define EHMTX_H #include "esphome.h" -#ifdef EHMTXv2_MULTICOLOR_TEXT -#include -#endif #define USE_Fireplugin #include "esphome/components/time/real_time_clock.h" @@ -38,7 +35,7 @@ const uint8_t TEXTSCROLLSTART = 8; const uint8_t TEXTSTARTOFFSET = (32 - 8); const uint16_t POLLINGINTERVAL = 250; -static const char *const EHMTX_VERSION = "2024.11.0"; +static const char *const EHMTX_VERSION = "2024.12.1"; static const char *const TAG = "EHMTXv2"; enum show_mode : uint8_t @@ -365,10 +362,6 @@ namespace esphome PROGMEM Color text_color, progressbar_color, progressbar_back_color; PROGMEM std::string text; PROGMEM std::string icon_name; - #ifdef EHMTXv2_MULTICOLOR_TEXT - PROGMEM std::array charcolors; - - #endif #endif #ifdef USE_ESP8266 Color text_color, progressbar_color, progressbar_back_color; @@ -381,10 +374,6 @@ namespace esphome Color heatColor(uint8_t temperature); void status(); - #ifdef EHMTXv2_MULTICOLOR_TEXT - void multicolor(std::string text,Color c); - #endif - void draw(); bool isfree(); bool update_slot(uint8_t _icon); diff --git a/components/ehmtxv2/EHMTX_queue.cpp b/components/ehmtxv2/EHMTX_queue.cpp index 9356d05..d8f4a6e 100644 --- a/components/ehmtxv2/EHMTX_queue.cpp +++ b/components/ehmtxv2/EHMTX_queue.cpp @@ -85,26 +85,11 @@ namespace esphome this->sbitmap = nullptr; #ifdef EHMTXv2_ADV_BITMAP this->bitmap = nullptr; -#endif -#ifdef EHMTXv2_MULTICOLOR_TEXT - this->charcolors = {}; #endif this->progressbar_color = esphome::display::COLOR_OFF; this->progressbar_back_color = esphome::display::COLOR_OFF; } - #ifdef EHMTXv2_MULTICOLOR_TEXT - void EHMTX_queue::multicolor(std::string _text,Color c) - { - std::regex color_re("(#[A-Fa-f0-9]{6})"); - this->text = std::regex_replace(_text, color_re, ""); - - for (std::string::size_type i = 0; i < _text.size(); ++i) { - this->charcolors[i] = c; - } - } - #endif - void EHMTX_queue::status() { switch (this->mode) diff --git a/tests/ulanzi-test.yaml b/tests/ulanzi-test.yaml index 7c7ef8b..5e11621 100644 --- a/tests/ulanzi-test.yaml +++ b/tests/ulanzi-test.yaml @@ -250,3 +250,4 @@ ehmtxv2: animation: - id: animation_black file: 1pixel.gif +