Page 1 of 1

SPI2 with GxEPD2 not working

Posted: Sun Oct 08, 2023 5:38 pm
by Devcore
Hello,

I try to start my e-paper on my BluePill STM32 board without success, No matter what config I did there is no CLK and DATA at all. If i craete a small example where I simply transfer anything thru SPI it's works like a charm. What did I missed?

display selection.h:

Code: Select all

GxEPD2_DISPLAY_CLASS<GxEPD2_DRIVER_CLASS, MAX_HEIGHT(GxEPD2_DRIVER_CLASS)> display(GxEPD2_DRIVER_CLASS(/*CS=PA4*/ PB12, /*DC=*/ PB11, /*RST=*/ PB10, /*BUSY=*/ PB1))
main.cpp:

Code: Select all

SPIClass SPI_2(PB15,PB14,PB13);

void setup() 
{
    SPI_2.begin();
    display.epd2.selectSPI(SPI_2, SPISettings(SPI_SPEED_CLOCK_DEFAULT, MSBFIRST, SPI_MODE0)); //SPI_SPEED_CLOCK_DEFAULT
    display.init();
}

void loop() 
{
  display.fillScreen(GxEPD_WHITE);
}
Any help welcome.

Thank You,
Devcore

Re: SPI2 with GxEPD2 not working

Posted: Wed Oct 18, 2023 9:21 am
by fpiSTM
I guess it is link to the library but hard to tell what. You should try to debug.