Skip to content

Commit

Permalink
Actually use provided ssPin
Browse files Browse the repository at this point in the history
  • Loading branch information
sidoh committed Dec 24, 2020
1 parent bf5a1cf commit 059daa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Display/DisplayTypeHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

template <class Display>
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, Display::HEIGHT>(Display(SS, dc, rst, busy));
return new GxEPD2_BW<Display, Display::HEIGHT>(Display(ssPin, dc, rst, busy));
}

template <class Display>
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, Display::HEIGHT>(Display(SS, dc, rst, busy));
return new GxEPD2_3C<Display, Display::HEIGHT>(Display(ssPin, dc, rst, busy));
}

const std::map<const char*, GxEPD2::Panel, cmp_str> DisplayTypeHelpers::PANELS_BY_NAME = {
Expand Down

0 comments on commit 059daa4

Please sign in to comment.