From 6f4e2b9319e53a62b9127a16242ba6f991b64ae8 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Tue, 26 May 2026 16:44:25 +0200 Subject: [PATCH] Moved AC/DC out of the way of the minus sign, added an h glyph for hFE display. --- esphome/owon-b35t.yaml | 7 +++++++ esphome/owon_b35t.h | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/esphome/owon-b35t.yaml b/esphome/owon-b35t.yaml index 796668c..ea6bc6f 100644 --- a/esphome/owon-b35t.yaml +++ b/esphome/owon-b35t.yaml @@ -75,6 +75,12 @@ ble_client: then: - lambda: |- owon_meter.on_disconnect(); + - logger.log: + level: WARN + format: "OWON BLE meter disconnected; restarting M5Stack to reclaim heap" + - delay: 1s + - lambda: |- + esp_restart(); spi: clk_pin: GPIO18 @@ -147,6 +153,7 @@ font: "e", "f", "g", + "h", "i", "k", "m", diff --git a/esphome/owon_b35t.h b/esphome/owon_b35t.h index d824472..a96c67d 100644 --- a/esphome/owon_b35t.h +++ b/esphome/owon_b35t.h @@ -222,8 +222,8 @@ class Meter { this->label_(it, font, 218, 8, "HOLD", this->hold() ? blue : inactive); this->label_(it, font, 270, 8, "REL", this->relative() ? Color(128, 128, 0) : inactive); - this->label_(it, font, 8, 72, "DC", this->dc() ? cyan : inactive); - this->label_(it, font, 8, 96, "AC", this->ac() ? magenta : inactive); + this->label_(it, font, 8, 66, "DC", this->dc() ? cyan : inactive); + this->label_(it, font, 8, 102, "AC", this->ac() ? magenta : inactive); if (!this->connected) { this->draw_digits_(it, "----", false, inactive);