Skip to content

Constructor when using software SPI not working with ESP32 #64

Description

@BaltasarParreira

My setup has a different TFT pinout so I have to use these constructor so I can pass the pins IT uses like these:

// Pins for the ILI9341
#define TFT_DC 2
#define TFT_CS 15
#define TFT_LED 21 // To control backlight led
// New TFT Custom Pins
#define TFT_MISO 12
#define TFT_MOSI 13
#define TFT_SCLK 14
#define TFT_RST -1 // It's directly connected to 3,3v

ILI9341_SPI tft = ILI9341_SPI(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST, TFT_MISO);

But it's not working and the screen stays all white with just the background led light and nothing else.

I'm using the latest Arduino IDE (2.3.5) with ESP32 3.3.8 and this latest library version (1.2.6).
As an additional information, using the "Adafruit_ILI9341" library that has sort of the same syntax all works ok without problems.

Anyone can check this?
Is there a bug with the implementation of these software SPI constructor?
Any workaround or solutions I can use?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions