diff --git a/esphome/esp-reterminal-e1001.yaml b/esphome/esp-reterminal-e1001.yaml index 318cb1e..9aff904 100644 --- a/esphome/esp-reterminal-e1001.yaml +++ b/esphome/esp-reterminal-e1001.yaml @@ -6,6 +6,8 @@ # https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-reterminal-e1001.yaml #:########################################################################################:# # VERSIONS: +# V0.2 2026-07-20 Enabled ESP-IDF experimental features required by ESPHome +# 2026.7.0 for OTA support with 32MB flash. # V0.1 2026-07-20 Initial ESPHome bring-up, Home Assistant API connection, # E1001 e-paper display test matrix and physical button setup. #:########################################################################################:# @@ -51,7 +53,7 @@ substitutions: # Project Naming project_name: "SeeedStudio.reTerminal-E1001" - project_version: "v0.1" + project_version: "v0.2" # Passwords and Secrets api_key: !secret esp-api_key @@ -125,6 +127,8 @@ esp32: flash_size: 32MB framework: type: arduino + advanced: + enable_idf_experimental_features: true #:########################################################################################:# # PSRAM: @@ -211,7 +215,9 @@ display: // Tile matrix geometry: 4 columns x 3 rows. const int columns = 4; + const int rows = 3; const int margin_x = 10; + const int margin_bottom = 10; const int gap_x = 8; const int gap_y = 8; const int grid_top = 72; @@ -233,32 +239,15 @@ display: // Outer screen border and header. it.rectangle(0, 0, screen_width - 1, screen_height - 1); it.line(0, header_height, screen_width - 1, header_height); - - it.print( - 16, - 31, - id(font_title), - TextAlign::CENTER_LEFT, - "Home Status" - ); + it.print(16, 31, id(font_title), TextAlign::CENTER_LEFT, + "Home Status"); if (id(wifi_ip_address).has_state()) { - it.printf( - 784, - 31, - id(font_small), - TextAlign::CENTER_RIGHT, - "ESPHome | %s", - id(wifi_ip_address).state.c_str() - ); + it.printf(784, 31, id(font_small), TextAlign::CENTER_RIGHT, + "ESPHome | %s", id(wifi_ip_address).state.c_str()); } else { - it.print( - 784, - 31, - id(font_small), - TextAlign::CENTER_RIGHT, - "ESPHome | Connecting..." - ); + it.print(784, 31, id(font_small), TextAlign::CENTER_RIGHT, + "ESPHome | Connecting..."); } // Draw the twelve initial placeholder tiles. @@ -269,24 +258,12 @@ display: const int y = grid_top + row * (tile_height + gap_y); it.rectangle(x, y, tile_width, tile_height); - - it.printf( - x + (tile_width / 2), - y + 46, - id(font_tile), - TextAlign::CENTER, - "%s", - tile_line_1[tile] - ); - - it.printf( - x + (tile_width / 2), - y + 82, - id(font_small), - TextAlign::CENTER, - "%s", - tile_line_2[tile] - ); + it.printf(x + (tile_width / 2), y + 46, + id(font_tile), TextAlign::CENTER, + "%s", tile_line_1[tile]); + it.printf(x + (tile_width / 2), y + 82, + id(font_small), TextAlign::CENTER, + "%s", tile_line_2[tile]); } #:########################################################################################:#