Przeglądaj źródła

Add GxEPD2_576_GDEH0576T81_BW (576_gdeh0576t81_bw) mono panel descriptor

Autonomous capture-pipeline run; structural, not bench-verified.
ZiB 2 tygodni temu
rodzic
commit
3e4280fe75

+ 1 - 0
components/gxepd2/display.py

@@ -120,6 +120,7 @@ PANELS = {
     "GxEPD2_420_GYE042A87": Panel("PANEL_420_GYE042A87", "TODO", "TODO", "mono", "structural"),
     "GxEPD2_420_M01": Panel("PANEL_420_M01", "TODO", "UC8176", "mono", "structural"),
     "GxEPD2_420_SE0420NQ04": Panel("PANEL_420_SE0420NQ04", "TODO", "UC8276C", "mono", "structural"),
+    "GxEPD2_576_GDEH0576T81_BW": Panel("PANEL_576_GDEH0576T81_BW", "GDEH0576T81", "SSD2677", "mono", "structural"),
     # Diagnostic variant: the 396x272 master region as a self-contained panel.
     "GxEPD2_579c_GDEY0579F51_MASTER_ONLY": Panel(
         "PANEL_579C_GDEY0579F51_MASTER_ONLY", "GDEY0579F51", "HX8717", "4-color", "diagnostic"),

+ 1 - 0
components/gxepd2/gxepd2_display.h

@@ -5,6 +5,7 @@
 #include "esphome/components/display/display_buffer.h"
 #include "esphome/components/spi/spi.h"
 #include "cycle_engine.h"
+#include "panel_576_gdeh0576t81_bw.h"
 #include "panel_420_se0420nq04.h"
 #include "panel_420_m01.h"
 #include "panel_420_gye042a87.h"

+ 90 - 0
components/gxepd2/panel_576_gdeh0576t81_bw.h

@@ -0,0 +1,90 @@
+// GENERATED by emit_descriptor from GxEPD2_576_GDEH0576T81 - candidate.
+// Command sequences, plane layout and plane_invert are observed here;
+// for a packed panel bits_per_pixel/palette/blank_code are probe-filled
+// when the colour family is recognised (4-colour/7-colour), else left TODO. A
+// dual-region panel also gets plane_width and a candidate line_order; the
+// exact PAIRED_EDGES row order still wants diag/driver confirmation.
+#pragma once
+#include "epd_command.h"
+
+namespace esphome::gxepd2 {
+
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_0_00[] = {0x2F, 0x0E};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_1_06[] = {0x0F, 0x8B, 0x9C, 0xC1};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_2_E7[] = {0xC1};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_3_30[] = {0x08};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_4_50[] = {0x77};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_5_61[] = {0x03, 0x98, 0x02, 0xA8};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_6_62[] = {0x98, 0x98, 0x98, 0x75, 0xCA, 0xB2, 0x98, 0x7E};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_7_65[] = {0x00, 0x00, 0x00, 0x00};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_8_E9[] = {0x01};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_10_E0[] = {0x02};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_INIT_11_E6[] = {0xF1};
+
+inline const EpdCommand PANEL_576_GDEH0576T81_BW_INIT[] = {
+    {0x00, PANEL_576_GDEH0576T81_BW_INIT_0_00, 2},
+    {0x06, PANEL_576_GDEH0576T81_BW_INIT_1_06, 4},
+    {0xE7, PANEL_576_GDEH0576T81_BW_INIT_2_E7, 1},
+    {0x30, PANEL_576_GDEH0576T81_BW_INIT_3_30, 1},
+    {0x50, PANEL_576_GDEH0576T81_BW_INIT_4_50, 1},
+    {0x61, PANEL_576_GDEH0576T81_BW_INIT_5_61, 4},
+    {0x62, PANEL_576_GDEH0576T81_BW_INIT_6_62, 8},
+    {0x65, PANEL_576_GDEH0576T81_BW_INIT_7_65, 4},
+    {0xE9, PANEL_576_GDEH0576T81_BW_INIT_8_E9, 1},
+    {0x40, nullptr, 0, /*delay_before_ms=*/0, /*delay_after_ms=*/5, /*wait_busy_after=*/false},
+    {0xE0, PANEL_576_GDEH0576T81_BW_INIT_10_E0, 1},
+    {0xE6, PANEL_576_GDEH0576T81_BW_INIT_11_E6, 1},
+    {0xA5, nullptr, 0, /*delay_before_ms=*/0, /*delay_after_ms=*/2, /*wait_busy_after=*/false},
+    {0x04, nullptr, 0, /*delay_before_ms=*/0, /*delay_after_ms=*/0, /*wait_busy_after=*/true},
+};
+
+inline const uint8_t PANEL_576_GDEH0576T81_BW_WINDOW_SEQ0_0_83[] = {0x00, 0x00, 0x03, 0x97, 0x00, 0x00, 0x02, 0xA7, 0x01};
+
+inline const EpdCommand PANEL_576_GDEH0576T81_BW_WINDOW_SEQ0[] = {
+    {0x83, PANEL_576_GDEH0576T81_BW_WINDOW_SEQ0_0_83, 9},
+};
+
+inline const uint8_t PANEL_576_GDEH0576T81_BW_REFRESH_0_50[] = {0x77};
+inline const uint8_t PANEL_576_GDEH0576T81_BW_REFRESH_1_12[] = {0x00};
+
+inline const EpdCommand PANEL_576_GDEH0576T81_BW_REFRESH[] = {
+    {0x50, PANEL_576_GDEH0576T81_BW_REFRESH_0_50, 1},
+    {0x12, PANEL_576_GDEH0576T81_BW_REFRESH_1_12, 1, /*delay_before_ms=*/0, /*delay_after_ms=*/0, /*wait_busy_after=*/true},
+};
+
+inline const uint8_t PANEL_576_GDEH0576T81_BW_POWER_OFF_0_02[] = {0x00};
+
+inline const EpdCommand PANEL_576_GDEH0576T81_BW_POWER_OFF[] = {
+    {0x02, PANEL_576_GDEH0576T81_BW_POWER_OFF_0_02, 1, /*delay_before_ms=*/0, /*delay_after_ms=*/0, /*wait_busy_after=*/true},
+};
+
+inline const uint8_t PANEL_576_GDEH0576T81_BW_HIBERNATE_0_07[] = {0xA5};
+
+inline const EpdCommand PANEL_576_GDEH0576T81_BW_HIBERNATE[] = {
+    {0x07, PANEL_576_GDEH0576T81_BW_HIBERNATE_0_07, 1},
+};
+
+inline const EpdPanelDescriptor PANEL_576_GDEH0576T81_BW = {
+    .width = 920,
+    .height = 680,
+    .busy_active_level = false,
+    .busy_timeout_ms = 15000,  // generous diagnostic ceiling (vendor full_refresh_time 1200ms, 1bpp mono/3-colour class); dev-tunable
+    .init_sequence = PANEL_576_GDEH0576T81_BW_INIT,
+    .init_sequence_len = sizeof(PANEL_576_GDEH0576T81_BW_INIT) / sizeof(PANEL_576_GDEH0576T81_BW_INIT[0]),
+    .window_sequence = {PANEL_576_GDEH0576T81_BW_WINDOW_SEQ0, nullptr},
+    .window_sequence_len = {sizeof(PANEL_576_GDEH0576T81_BW_WINDOW_SEQ0) / sizeof(PANEL_576_GDEH0576T81_BW_WINDOW_SEQ0[0]), 0},
+    .plane_count = 1,
+    .plane_write_cmd = {0x10, 0x00},
+    .plane_invert = {false, false},  // probe-derived
+    .bits_per_pixel = 1,  // probe: white fill => all-bits wire byte 0xFF
+    .palette = nullptr,
+    .palette_len = 0,
+    .refresh_sequence = PANEL_576_GDEH0576T81_BW_REFRESH,
+    .refresh_sequence_len = sizeof(PANEL_576_GDEH0576T81_BW_REFRESH) / sizeof(PANEL_576_GDEH0576T81_BW_REFRESH[0]),
+    .power_off_sequence = PANEL_576_GDEH0576T81_BW_POWER_OFF,  // probe: powerOff(), fresh session after a normal refresh
+    .power_off_sequence_len = sizeof(PANEL_576_GDEH0576T81_BW_POWER_OFF) / sizeof(PANEL_576_GDEH0576T81_BW_POWER_OFF[0]),
+    .hibernate_sequence = PANEL_576_GDEH0576T81_BW_HIBERNATE,  // probe: hibernate()'s tail past powerOff() (see file header)
+    .hibernate_sequence_len = sizeof(PANEL_576_GDEH0576T81_BW_HIBERNATE) / sizeof(PANEL_576_GDEH0576T81_BW_HIBERNATE[0]),
+};
+
+}  // namespace esphome::gxepd2