Skip to content

Commit

Permalink
preparation for multicolortext
Browse files Browse the repository at this point in the history
  • Loading branch information
lubeda committed Jun 9, 2024
1 parent c23c29a commit 55cbaee
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 109 deletions.
7 changes: 7 additions & 0 deletions components/ehmtxv2/EHMTX.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef EHMTX_H
#define EHMTX_H
#include "esphome.h"
#ifdef EHMTXv2_MULTICOLOR_TEXT
#include <array>
#endif
#define USE_Fireplugin
#include "esphome/components/time/real_time_clock.h"

Expand Down Expand Up @@ -363,6 +366,9 @@ 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<Color, 96> _textcolors;
#endif
#endif
#ifdef USE_ESP8266
Color text_color, progressbar_color, progressbar_back_color;
Expand All @@ -371,6 +377,7 @@ namespace esphome
#endif

EHMTX_queue(EHMTX *config);
EHMTX_queue(EHMTX *config,std::string text);
Color heatColor(uint8_t temperature);
void status();
void draw();
Expand Down
Loading

0 comments on commit 55cbaee

Please sign in to comment.