Skip to content

BMPDraw() not working when MOSI and CLK pins are given in the constructor. (ScreenTFT_ILI9340-ILI9341 sample) #2950

@profjmer

Description

@profjmer

From sample: ScreenTFT_ILI9340-ILI9341, with the same board, same chip, but using different constructors, BMPDraw() do not work with constructor using mosi and clk pins.

#define ili9341_DC 2
#define ili9341_CS 15
#define ili9341_RST -1
#define ili9341_MOSI 13
#define ili9341_MISO -1
#define ili9341_CLK 14

namespace
{
Adafruit_ILI9341 tft = Adafruit_ILI9341(ili9341_CS, ili9341_DC, ili9341_MOSI, ili9341_CLK,ili9341_RST, ili9341_MISO);
//Adafruit_ILI9341 tft = Adafruit_ILI9341(ili9341_CS, ili9341_DC);

if I use Adafruit_ILI9341 tft = Adafruit_ILI9341(ili9341_CS, ili9341_DC); BMPDraw() works.
if I use Adafruit_ILI9341 tft = Adafruit_ILI9341(ili9341_CS, ili9341_DC, ili9341_MOSI, ili9341_CLK,ili9341_RST, ili9341_MISO); Screen text and gui work but BMPDraw() do not show sming.bmp.

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