diff --git a/lib/Display/DisplayTypeHelpers.cpp b/lib/Display/DisplayTypeHelpers.cpp index fb8700e..e0bbb73 100644 --- a/lib/Display/DisplayTypeHelpers.cpp +++ b/lib/Display/DisplayTypeHelpers.cpp @@ -19,6 +19,7 @@ inline static GxEPD2_GFX* __gxepd2_build_3c_driver(const uint8_t dc, const uint8 const std::map DisplayTypeHelpers::PANELS_BY_NAME = { { "GDEP015OC1", GxEPD2::Panel::GDEP015OC1 }, + { "GDEH0154D67", GxEPD2::Panel::GDEH0154D67 }, { "GDEW0154Z04", GxEPD2::Panel::GDEW0154Z04 }, { "GDE0213B1", GxEPD2::Panel::GDE0213B1 }, { "GDEH0213B72", GxEPD2::Panel::GDEH0213B72 }, @@ -45,6 +46,7 @@ const std::map DisplayTypeHelpers::PANELS_B const std::map DisplayTypeHelpers::PANEL_DESCRIPTIONS = { { GxEPD2::Panel::GDEP015OC1, "1.54\" B/W" }, + { GxEPD2::Panel::GDEH0154D67, "1.54\" B/W" }, { GxEPD2::Panel::GDEW0154Z04, "1.54\" B/W/R" }, { GxEPD2::Panel::GDE0213B1, "2.13\" B/W" }, { GxEPD2::Panel::GDEH0213B72, "2.13\" B/W" }, @@ -71,6 +73,7 @@ const std::map DisplayTypeHelpers::PANEL_DESCR const std::map DisplayTypeHelpers::PANEL_COLOR_SUPPORT = { { GxEPD2::Panel::GDEP015OC1, "BW" }, + { GxEPD2::Panel::GDEH0154D67, "BW" }, { GxEPD2::Panel::GDEW0154Z04, "BWR"}, { GxEPD2::Panel::GDE0213B1, "BW"}, { GxEPD2::Panel::GDEH0213B72, "BW"}, @@ -99,6 +102,7 @@ const std::map DisplayTypeHelpers::PANEL_COLOR // ls src/{epd,epd3c}/*.h | xargs -I % bash -c 'grep -Eo "GxEPD2::[^;]+;" % | cut -d":" -f5 | tr -d "\n" && grep -Eo "(WIDTH|HEIGHT)[ ]*=[ ]*\d+" % | grep -Eo "[0-9]+" | tr "\n" "," && echo' const std::map> DisplayTypeHelpers::PANEL_SIZES = { { GxEPD2::Panel::GDEP015OC1, std::make_pair(200,200) }, + { GxEPD2::Panel::GDEH0154D67, std::make_pair(200,200) }, { GxEPD2::Panel::GDE0213B1, std::make_pair(128,250) }, { GxEPD2::Panel::GDEH0213B72, std::make_pair(128,250) }, { GxEPD2::Panel::GDEH0213B73, std::make_pair(128,250) }, @@ -167,6 +171,8 @@ GxEPD2_GFX* DisplayTypeHelpers::buildDisplay(GxEPD2::Panel type, uint8_t dc, uin // black/white displays case GxEPD2::Panel::GDEP015OC1: return __gxepd2_build_bw_driver(dc, rst, busy, ss); + case GxEPD2::Panel::GDEH0154D67: + return __gxepd2_build_bw_driver(dc, rst, busy, ss); case GxEPD2::Panel::GDE0213B1: return __gxepd2_build_bw_driver(dc, rst, busy, ss); case GxEPD2::Panel::GDEH0213B72: @@ -217,4 +223,4 @@ GxEPD2_GFX* DisplayTypeHelpers::buildDisplay(GxEPD2::Panel type, uint8_t dc, uin Serial.printf_P(PSTR("Unsupported display type, using default. Provided display: %d\n"), static_cast(type)); return buildDisplay(DisplayTypeHelpers::DEFAULT_PANEL, dc, rst, busy, ss); } -} \ No newline at end of file +}