Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFT Display flipped/mirrored on ESP-WROVER-KIT V4.1 #65

Open
DenisCrnic opened this issue Jan 6, 2019 · 4 comments
Open

TFT Display flipped/mirrored on ESP-WROVER-KIT V4.1 #65

DenisCrnic opened this issue Jan 6, 2019 · 4 comments

Comments

@DenisCrnic
Copy link

DenisCrnic commented Jan 6, 2019

After downloading and compiling your library on ESP-WROVER-KIT V4.1 display runs the demo program but the screen is flipped.
I've used the following configuration:

#define DEFAULT_DISP_TYPE           DISP_TYPE_ILI9341
#define DEFAULT_TFT_DISPLAY_WIDTH   240
#define DEFAULT_TFT_DISPLAY_HEIGHT  320
#define DISP_COLOR_BITS_24          0x66
#define DEFAULT_GAMMA_CURVE         0
#define DEFAULT_SPI_CLOCK           26000000
#define TFT_INVERT_ROTATION         0
#define TFT_INVERT_ROTATION1        1
#define TFT_INVERT_ROTATION2        0
#define TFT_RGB_BGR                 0x08
spi_lobo_bus_config_t buscfg={
        .miso_io_num=25,                // set SPI MISO pin
        .mosi_io_num=23,                // set SPI MOSI pin
        .sclk_io_num=19,                // set SPI CLK pin
        .quadwp_io_num=-1,
        .quadhd_io_num=-1,
        .max_transfer_sz = 6*1024,
    };
spi_lobo_device_interface_config_t devcfg={
        .clock_speed_hz=26000000,                // Initial clock out at 8 MHz
        .mode=0,                                // SPI mode 0
        .spics_io_num=-1,                       // we will use external CS pin
        .spics_ext_io_num=22,           // external CS pin
        .flags=LB_SPI_DEVICE_HALFDUPLEX,        // ALWAYS SET  to HALF DUPLEX MODE!! for display spi
};

20190106_204559
20190106_204612 1

@curiousmuch
Copy link

#define DEFAULT_DISP_TYPE           DISP_TYPE_ILI9341
#define DEFAULT_TFT_DISPLAY_WIDTH   240
#define DEFAULT_TFT_DISPLAY_HEIGHT  320
#define DISP_COLOR_BITS_24          0x66
#define DEFAULT_GAMMA_CURVE         0
#define DEFAULT_SPI_CLOCK           26000000
#define TFT_INVERT_ROTATION         0
#define TFT_INVERT_ROTATION1        0
#define TFT_INVERT_ROTATION2		0
#define TFT_RGB_BGR                 0x00

A little experimentation.

@PaladinEng
Copy link

I'm having this issue as well.
I'm using this display:
this dsiplay which includes an st7735S controller.

Any ideas how to fix this?

@PaladinEng
Copy link

Update: fixed the mirroring problem with the following settings:
#define TFT_INVERT_ROTATION 0
#define TFT_INVERT_ROTATION1 1

@exislow
Copy link

exislow commented Jun 23, 2019

I fixed it and added a new menuconfig option for ESP-WROVER-KIT 4.1. Pull request: #71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants