Open gcharles81 opened 2 years ago
Hello, thank you for your interest!
The SPI version of the GFX_TFT class for RA8875, GFX_SPI_RA8875, has 3 constructors:
GFX_SPI_RA8875(int16_t cs_pin, int16_t dc_pin, int16_t rst_pin = -1, int16_t bl_pin = -1);
GFX_SPI_RA8875(int16_t cs_pin, int16_t dc_pin, int16_t mosi_pin, int16_t sclk_pin, int16_t rst_pin, int16_t bl_pin = -1);
GFX_SPI_RA8875(SPIClass *spi, int16_t cs_pin, int16_t dc_pin, int16_t rst_pin = -1, int16_t bl_pin = -1);
The first one uses the default HW SPI channel as defined by the Arduino package for the board you compile for. This is the only one I have tested with.
The second one should use SW SPI provided by the cloned Adafruit_SPITFT class.
The third should be able to use any SW or HW SPI class instance. It may bypass the Adafruit_SPITFT clone. Untested.
There is no other support for alternative HW SPI channels on multi-SPI capable processors.
Jean-Marc
Thanks @ZinggJM for your input , I am initializing the instance with GFX_SPI_RA8875 tft(PB12,PB1,PB15,PB13,PC5); but I cannot get it to work with this Black STM32F407 board using the TFT connector https://stm32-base.org/boards/STM32F407VGT6-STM32F4XX-M.html
Hello Thanks for this library I would like to try on my STM32 black_f407vg board and RA8875 5 inch display
I already have a setup running with RA8875 & Arduino DUE using another library From Sumotoy but I have been searching a lot to find an Arduino compatible library for RA8875 that works on STM32.
My setup with the STM32 I have connected the Ra8875 display to the below pins but I cannot find out where to set the pinouts , besides the following which takes only SS,DC,RST and BL , I find no where to set which SPI channel
TFT_SPI_PORT 2 // SPI port 2 maximum clock rate is 27MHz MOSI PB15 MISO PB14 SCLK PB13 CS PB12 RST PD8
Thanks appreciate if you can help