pull/2/head
LuBeDa 3 years ago
parent c5c310edf9
commit ff2387e214

@ -4,7 +4,7 @@
- [x] alarm on all screen but fullscreen - [x] alarm on all screen but fullscreen
- [x] indicator on all screen but fullscreen and clock - [x] indicator on all screen but fullscreen and clock
- [ ] refreshing an icon screen should extend the display time - [x] refreshing an icon screen should extend the display time
- [ ] scroll left to right - [ ] scroll left to right
- [x] size of indicator and alarm - [x] size of indicator and alarm
- [x] center text - [x] center text
@ -15,17 +15,16 @@
- [ ] seconds point moveable - [ ] seconds point moveable
- [ ] seconds point to clock screen only - [ ] seconds point to clock screen only
- [x] rainbow icon and text - [x] rainbow icon and text
- [ ] del_slot noch active? - [x] del_slot noch active?
- [ ] CONF_ALARM weg? - [x] CONF_ALARM weg?
- [ ] reintroduce resize - [x] reintroduce resize
- [ ]
## ux ## ux
- [ ] blueprints - [ ] blueprints
- [ ] Color in blueprints - [ ] Color in blueprints
- [ ] all modes in one blueprint - [ ] all modes in one blueprint
- [ ] extem html with more bluepörint helpers - [ ] external html with more blueprint helpers (icons and modes)
- [x] default values for all functions - [x] default values for all functions
- [x] provide sample font from [url](https://www.pentacom.jp/pentacom/bitfontmaker2/) - [x] provide sample font from [url](https://www.pentacom.jp/pentacom/bitfontmaker2/)
- [x] start animation - [x] start animation
@ -50,4 +49,4 @@
## noch prüfen ## noch prüfen
- [ ] Timer display with formation H:M:S - [ ] Timer display with formation H:M:S
- [ ] find a way for automastically add smalfont - [ ] find a way for automatically add smallfont

@ -330,7 +330,7 @@ namespace esphome
this->screen_pointer = find_oldest_queue_element(); this->screen_pointer = find_oldest_queue_element();
if (this->screen_pointer != MAXQUEUE) if (this->screen_pointer != MAXQUEUE)
{ {
this->queue[this->screen_pointer]->reset_shiftx(); this->queue[this->screen_pointer]->shiftx_ = 0;
this->queue[this->screen_pointer]->last_time = ts + this->queue[this->screen_pointer]->screen_time; this->queue[this->screen_pointer]->last_time = ts + this->queue[this->screen_pointer]->screen_time;
if (this->queue[this->screen_pointer]->icon < this->icon_count) if (this->queue[this->screen_pointer]->icon < this->icon_count)
{ {
@ -811,7 +811,7 @@ namespace esphome
void EHMTX::dump_config() void EHMTX::dump_config()
{ {
ESP_LOGCONFIG(TAG, "EspHoMatriX %s", EHMTX_VERSION); ESP_LOGCONFIG(TAG, "EspHoMatriXv2 %s", EHMTX_VERSION);
ESP_LOGCONFIG(TAG, "Boot anim: %d", this->boot_anim); ESP_LOGCONFIG(TAG, "Boot anim: %d", this->boot_anim);
ESP_LOGCONFIG(TAG, "Icons: %d of %d", this->icon_count, MAXICONS); ESP_LOGCONFIG(TAG, "Icons: %d of %d", this->icon_count, MAXICONS);
ESP_LOGCONFIG(TAG, "Max screens: %d", MAXQUEUE); ESP_LOGCONFIG(TAG, "Max screens: %d", MAXQUEUE);

@ -182,10 +182,8 @@ namespace esphome
void status(); void status();
void draw(); void draw();
bool isfree(); bool isfree();
void reset_shiftx();
bool update_slot(uint8_t _icon); bool update_slot(uint8_t _icon);
void update_screen(); void update_screen();
bool del_slot(uint8_t _icon);
void hold_slot(uint8_t _sec); void hold_slot(uint8_t _sec);
void set_text(std::string text, uint8_t icon, uint16_t pixel, uint16_t et, uint16_t st); void set_text(std::string text, uint8_t icon, uint16_t pixel, uint16_t et, uint16_t st);
}; };

@ -58,22 +58,6 @@ namespace esphome
} }
} }
bool EHMTX_queue::del_slot(uint8_t _icon)
{
if (this->icon == _icon)
{
this->endtime = 0;
ESP_LOGW(TAG, "delete screen icon: %d", _icon);
return true;
}
return false;
}
void EHMTX_queue::reset_shiftx()
{
this->shiftx_ = 0;
}
void EHMTX_queue::update_screen() void EHMTX_queue::update_screen()
{ {
if (millis() - this->config_->last_rainbow_time >= this->config_->rainbow_interval) if (millis() - this->config_->last_rainbow_time >= this->config_->rainbow_interval)

@ -85,7 +85,7 @@ CONF_SHOW_SECONDS = "show_seconds"
CONF_WEEK_START_MONDAY = "week_start_monday" CONF_WEEK_START_MONDAY = "week_start_monday"
CONF_ICON = "icon_name" CONF_ICON = "icon_name"
CONF_TEXT = "text" CONF_TEXT = "text"
CONF_ALARM = "alarm"
EHMTX_SCHEMA = cv.Schema({ EHMTX_SCHEMA = cv.Schema({
cv.Required(CONF_ID): cv.declare_id(EHMTX_), cv.Required(CONF_ID): cv.declare_id(EHMTX_),

Loading…
Cancel
Save