panel_290_t5d.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // GENERATED by emit_descriptor from GxEPD2_290_T5D - candidate.
  2. // Command sequences, plane layout and plane_invert are observed here;
  3. // for a packed panel bits_per_pixel/palette/blank_code are probe-filled
  4. // when the colour family is recognised (4-colour/7-colour), else left TODO. A
  5. // dual-region panel also gets plane_width and a candidate line_order; the
  6. // exact PAIRED_EDGES row order still wants diag/driver confirmation.
  7. #pragma once
  8. #include "epd_command.h"
  9. namespace esphome::gxepd2 {
  10. inline const uint8_t PANEL_290_T5D_INIT_0_00[] = {0x1F};
  11. inline const uint8_t PANEL_290_T5D_INIT_1_61[] = {0x80, 0x01, 0x28};
  12. inline const uint8_t PANEL_290_T5D_INIT_2_50[] = {0x97};
  13. inline const uint8_t PANEL_290_T5D_INIT_3_00[] = {0xBF};
  14. inline const uint8_t PANEL_290_T5D_INIT_4_82[] = {0x08};
  15. inline const uint8_t PANEL_290_T5D_INIT_5_50[] = {0x17};
  16. inline const uint8_t PANEL_290_T5D_INIT_6_20[] = {0x00, 0x20, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  17. inline const uint8_t PANEL_290_T5D_INIT_7_21[] = {0x00, 0x20, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  18. inline const uint8_t PANEL_290_T5D_INIT_8_22[] = {0x80, 0x20, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  19. inline const uint8_t PANEL_290_T5D_INIT_9_23[] = {0x40, 0x20, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  20. inline const uint8_t PANEL_290_T5D_INIT_10_24[] = {0x00, 0x20, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  21. inline const EpdCommand PANEL_290_T5D_INIT[] = {
  22. {0x00, PANEL_290_T5D_INIT_0_00, 1},
  23. {0x61, PANEL_290_T5D_INIT_1_61, 3},
  24. {0x50, PANEL_290_T5D_INIT_2_50, 1},
  25. {0x00, PANEL_290_T5D_INIT_3_00, 1},
  26. {0x82, PANEL_290_T5D_INIT_4_82, 1},
  27. {0x50, PANEL_290_T5D_INIT_5_50, 1},
  28. {0x20, PANEL_290_T5D_INIT_6_20, 44},
  29. {0x21, PANEL_290_T5D_INIT_7_21, 42},
  30. {0x22, PANEL_290_T5D_INIT_8_22, 42},
  31. {0x23, PANEL_290_T5D_INIT_9_23, 42},
  32. {0x24, PANEL_290_T5D_INIT_10_24, 42},
  33. {0x04, nullptr, 0, /*delay_before_ms=*/0, /*delay_after_ms=*/0, /*wait_busy_after=*/true},
  34. };
  35. inline const uint8_t PANEL_290_T5D_WINDOW_SEQ0_1_90[] = {0x00, 0x7F, 0x00, 0x00, 0x01, 0x27, 0x01};
  36. inline const EpdCommand PANEL_290_T5D_WINDOW_SEQ0[] = {
  37. {0x91, nullptr, 0},
  38. {0x90, PANEL_290_T5D_WINDOW_SEQ0_1_90, 7},
  39. };
  40. inline const uint8_t PANEL_290_T5D_REFRESH_1_00[] = {0x1F};
  41. inline const uint8_t PANEL_290_T5D_REFRESH_2_61[] = {0x80, 0x01, 0x28};
  42. inline const uint8_t PANEL_290_T5D_REFRESH_3_50[] = {0x97};
  43. inline const EpdCommand PANEL_290_T5D_REFRESH[] = {
  44. {0x92, nullptr, 0, /*delay_before_ms=*/0, /*delay_after_ms=*/1, /*wait_busy_after=*/false},
  45. {0x00, PANEL_290_T5D_REFRESH_1_00, 1},
  46. {0x61, PANEL_290_T5D_REFRESH_2_61, 3},
  47. {0x50, PANEL_290_T5D_REFRESH_3_50, 1},
  48. {0x12, nullptr, 0, /*delay_before_ms=*/0, /*delay_after_ms=*/0, /*wait_busy_after=*/true},
  49. };
  50. inline const EpdCommand PANEL_290_T5D_POWER_OFF[] = {
  51. {0x02, nullptr, 0, /*delay_before_ms=*/0, /*delay_after_ms=*/0, /*wait_busy_after=*/true},
  52. };
  53. inline const uint8_t PANEL_290_T5D_HIBERNATE_0_07[] = {0xA5};
  54. inline const EpdCommand PANEL_290_T5D_HIBERNATE[] = {
  55. {0x07, PANEL_290_T5D_HIBERNATE_0_07, 1},
  56. };
  57. inline const EpdPanelDescriptor PANEL_290_T5D = {
  58. .width = 128,
  59. .height = 296,
  60. .busy_active_level = false,
  61. .busy_timeout_ms = 15000, // generous diagnostic ceiling (vendor full_refresh_time 3500ms, 1bpp mono/3-colour class); dev-tunable
  62. .init_sequence = PANEL_290_T5D_INIT,
  63. .init_sequence_len = sizeof(PANEL_290_T5D_INIT) / sizeof(PANEL_290_T5D_INIT[0]),
  64. .window_sequence = {PANEL_290_T5D_WINDOW_SEQ0, nullptr},
  65. .window_sequence_len = {sizeof(PANEL_290_T5D_WINDOW_SEQ0) / sizeof(PANEL_290_T5D_WINDOW_SEQ0[0]), 0},
  66. .plane_count = 1,
  67. .plane_write_cmd = {0x13, 0x00},
  68. .plane_write_cmd_for_full_refresh = {0x10, 0x00}, // writeImageForFullRefresh also re-writes this "previous RAM" bank before the 0x13 write above - not read by this full-refresh-only engine yet, captured for future partial-refresh use
  69. .plane_invert = {false, false}, // probe-derived
  70. .bits_per_pixel = 1, // probe: white fill => all-bits wire byte 0xFF
  71. .palette = nullptr,
  72. .palette_len = 0,
  73. .refresh_sequence = PANEL_290_T5D_REFRESH,
  74. .refresh_sequence_len = sizeof(PANEL_290_T5D_REFRESH) / sizeof(PANEL_290_T5D_REFRESH[0]),
  75. .power_off_sequence = PANEL_290_T5D_POWER_OFF, // probe: powerOff(), fresh session after a normal refresh
  76. .power_off_sequence_len = sizeof(PANEL_290_T5D_POWER_OFF) / sizeof(PANEL_290_T5D_POWER_OFF[0]),
  77. .hibernate_sequence = PANEL_290_T5D_HIBERNATE, // probe: hibernate()'s tail past powerOff() (see file header)
  78. .hibernate_sequence_len = sizeof(PANEL_290_T5D_HIBERNATE) / sizeof(PANEL_290_T5D_HIBERNATE[0]),
  79. };
  80. } // namespace esphome::gxepd2