Skip to content

Commit

Permalink
always do spi remapping #101
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarzen committed Aug 25, 2024
1 parent bf0b556 commit 98c4c42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions platformio/src/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,16 @@ void initDisplay()
digitalWrite(PIN_EPD_PWR, HIGH);
#ifdef DRIVER_WAVESHARE
display.init(115200, true, 2, false);
// remap spi for waveshare
#endif
#ifdef DRIVER_DESPI_C02
display.init(115200, true, 10, false);
#endif
// remap spi
SPI.end();
SPI.begin(PIN_EPD_SCK,
PIN_EPD_MISO,
PIN_EPD_MOSI,
PIN_EPD_CS);
#endif
#ifdef DRIVER_DESPI_C02
display.init(115200, true, 10, false);
#endif

display.setRotation(0);
display.setTextSize(1);
Expand Down

0 comments on commit 98c4c42

Please sign in to comment.