Skip to content

Commit

Permalink
Prepare for use with esp32s3 and audio
Browse files Browse the repository at this point in the history
  • Loading branch information
lubeda committed May 17, 2024
1 parent 5a546ac commit 9af23c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/ehmtxv2/EHMTX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2022,6 +2022,7 @@ namespace esphome
screen->status();
}

#ifdef USE_Fireplugin
void EHMTX::fire_screen(int lifetime, int screen_time)
{
EHMTX_queue *screen = this->find_mode_queue_element(MODE_FIRE);
Expand All @@ -2040,6 +2041,7 @@ namespace esphome
ESP_LOGD(TAG, "fire screen: lifetime: %d screen_time:%d ", lifetime, screen_time);
screen->status();
}
#endif

void EHMTX::full_screen(std::string iconname, int lifetime, int screen_time)
{
Expand Down
5 changes: 5 additions & 0 deletions components/ehmtxv2/EHMTX.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
#define USE_Fireplugin
#include "esphome/components/time/real_time_clock.h"

#ifdef CONFIG_IDF_TARGET_ESP32S3
#undef USE_Fireplugin
#define F(x) (x)
#endif

const uint8_t MAXQUEUE = 24;
const uint8_t C_RED = 240; // default
const uint8_t C_BLUE = 240;
Expand Down

0 comments on commit 9af23c4

Please sign in to comment.