SPI2 with GxEPD2 not working

Working libraries, libraries being ported and related hardware
Post Reply
Devcore
Posts: 1
Joined: Sun Oct 08, 2023 5:32 pm

SPI2 with GxEPD2 not working

Post 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
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: SPI2 with GxEPD2 not working

Post by fpiSTM »

I guess it is link to the library but hard to tell what. You should try to debug.
Post Reply

Return to “Libraries & Hardware”