|
|
@@ -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
|