From 6c7015752f6b09ba318aba19a11671956845bfcf Mon Sep 17 00:00:00 2001 From: LuBeDa Date: Sat, 20 May 2023 19:50:44 +0200 Subject: [PATCH] ulanzi problems --- README.md | 6 ++++-- components/ehmtxv2/EHMTX.cpp | 3 +-- components/ehmtxv2/EHMTX.h | 2 +- copy2esphome/ulanzi-easy.yaml | 18 ------------------ tests/ulanzi-easy.yaml | 18 ------------------ 5 files changed, 6 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index d2598c3..e9d4352 100644 --- a/README.md +++ b/README.md @@ -1032,7 +1032,9 @@ sensor: ## Breaking changes -### **nothing yet, since it is new** +### 2023.5.0 + +- removed the rtttl buzzer from the ulanzi easy template, because it often caused reboots! ## EspHoMaTriX in the media @@ -1065,7 +1067,7 @@ THE SOFTWARE IS PROVIDED "AS IS", use at your own risk! - **[aptonline](https://github.com/aptonline)** for his work on the ulanzi hardware - **[wsbtak](https://github.com/wsbtak)** for the work on the ulanzi hardware - **[ofirsnb](https://github.com/ofirsnb)** for his contributions -- **[darkpoet78](https://github.com/darkpoet78/MatrixClockFonts)** for his work on optimized fonts +- **[darkpoet78](https://github.com/darkpoet78/MatrixClockFonts)** for his work on optimized fonts and user support - **[pplucky](https://user-images.githubusercontent.com/16407309/224850723-634c9b2d-55d9-44f2-9f93-765c0485b090.GIF)** for his 8x32 GIF animation - **[dennisse](https://github.com/dennisse)** Auto brightness for the Ulanzi - **[geekofweek](https://github.com/geekofweek)** fixed sample YAML diff --git a/components/ehmtxv2/EHMTX.cpp b/components/ehmtxv2/EHMTX.cpp index 4b9d43a..dd6803e 100644 --- a/components/ehmtxv2/EHMTX.cpp +++ b/components/ehmtxv2/EHMTX.cpp @@ -20,6 +20,7 @@ namespace esphome this->alarm_color = Color(CA_RED, CA_GREEN, CA_BLUE); this->gauge_color = Color(CD_RED, CD_GREEN, CD_BLUE); this->gauge_value = 0; + this->next_action_time = 0; this->screen_pointer = MAXQUEUE; for (uint8_t i = 0; i < MAXQUEUE; i++) @@ -194,7 +195,6 @@ namespace esphome register_service(&EHMTX::set_brightness, "brightness", {"value"}); ESP_LOGD(TAG, "Setup and running!"); - this->is_running = true; } void EHMTX::show_alarm(int r, int g, int b, int size) @@ -906,7 +906,6 @@ namespace esphome { ESP_LOGCONFIG(TAG, "weekstart: sunday"); } - this->is_running = true; } void EHMTX::add_icon(EHMTX_Icon *icon) diff --git a/components/ehmtxv2/EHMTX.h b/components/ehmtxv2/EHMTX.h index 252c832..0a0e993 100644 --- a/components/ehmtxv2/EHMTX.h +++ b/components/ehmtxv2/EHMTX.h @@ -37,7 +37,7 @@ namespace esphome class EHMTX : public PollingComponent, public api::CustomAPIDevice { protected: - float get_setup_priority() const override { return esphome::setup_priority::BEFORE_CONNECTION; } + float get_setup_priority() const override { return esphome::setup_priority::WIFI; } uint8_t brightness_; uint32_t boot_anim=0; uint8_t screen_pointer; diff --git a/copy2esphome/ulanzi-easy.yaml b/copy2esphome/ulanzi-easy.yaml index 1a2a49f..e42d99f 100644 --- a/copy2esphome/ulanzi-easy.yaml +++ b/copy2esphome/ulanzi-easy.yaml @@ -1,7 +1,5 @@ substitutions: devicename: ulanzi - ledpin: GPIO32 - buzzerpin: GPIO15 friendly_name: LED Matrix board: esp32dev # Pin definition from https://github.com/aptonline/PixelIt_Ulanzi @@ -11,7 +9,6 @@ substitutions: left_button_pin: GPIO26 mid_button_pin: GPIO27 right_button_pin: GPIO14 - buzzer_pin: GPIO15 scl_pin: GPIO22 sda_pin: GPIO21 @@ -99,13 +96,6 @@ logger: level: WARN api: - services: - - service: tune - variables: - tune: string - then: - - rtttl.play: - rtttl: !lambda 'return tune;' sensor: - platform: sht3xd @@ -168,14 +158,6 @@ wifi: web_server: -output: - - platform: ledc - pin: $buzzerpin - id: rtttl_out - -rtttl: - output: rtttl_out - i2c: sda: $sda_pin scl: $scl_pin diff --git a/tests/ulanzi-easy.yaml b/tests/ulanzi-easy.yaml index 1a2a49f..e42d99f 100644 --- a/tests/ulanzi-easy.yaml +++ b/tests/ulanzi-easy.yaml @@ -1,7 +1,5 @@ substitutions: devicename: ulanzi - ledpin: GPIO32 - buzzerpin: GPIO15 friendly_name: LED Matrix board: esp32dev # Pin definition from https://github.com/aptonline/PixelIt_Ulanzi @@ -11,7 +9,6 @@ substitutions: left_button_pin: GPIO26 mid_button_pin: GPIO27 right_button_pin: GPIO14 - buzzer_pin: GPIO15 scl_pin: GPIO22 sda_pin: GPIO21 @@ -99,13 +96,6 @@ logger: level: WARN api: - services: - - service: tune - variables: - tune: string - then: - - rtttl.play: - rtttl: !lambda 'return tune;' sensor: - platform: sht3xd @@ -168,14 +158,6 @@ wifi: web_server: -output: - - platform: ledc - pin: $buzzerpin - id: rtttl_out - -rtttl: - output: rtttl_out - i2c: sda: $sda_pin scl: $scl_pin