From 059daa47e1e53a556322ab7c0285f3a6b152798c Mon Sep 17 00:00:00 2001 From: Chris Mullins Date: Thu, 24 Dec 2020 12:43:20 -0800 Subject: [PATCH] Actually use provided ssPin --- lib/Display/DisplayTypeHelpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Display/DisplayTypeHelpers.cpp b/lib/Display/DisplayTypeHelpers.cpp index bad7964..fb8700e 100644 --- a/lib/Display/DisplayTypeHelpers.cpp +++ b/lib/Display/DisplayTypeHelpers.cpp @@ -9,12 +9,12 @@ template inline static GxEPD2_GFX* __gxepd2_build_bw_driver(const uint8_t dc, const uint8_t rst, const uint8_t busy, const uint8_t ssPin) { - return new GxEPD2_BW(Display(SS, dc, rst, busy)); + return new GxEPD2_BW(Display(ssPin, dc, rst, busy)); } template inline static GxEPD2_GFX* __gxepd2_build_3c_driver(const uint8_t dc, const uint8_t rst, const uint8_t busy, const uint8_t ssPin) { - return new GxEPD2_3C(Display(SS, dc, rst, busy)); + return new GxEPD2_3C(Display(ssPin, dc, rst, busy)); } const std::map DisplayTypeHelpers::PANELS_BY_NAME = {