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

New Display - ST7789V on TTGO - Inverted Colours #84

Open
RichardPar opened this issue Feb 17, 2020 · 1 comment
Open

New Display - ST7789V on TTGO - Inverted Colours #84

RichardPar opened this issue Feb 17, 2020 · 1 comment

Comments

@RichardPar
Copy link

Hi there,

I got the ESP32 with an OLED display build on by TTGO. It has a pretty standard controller except the pixels are offset to get to location 0.0 (They are actually 52.40)
I added code to offset the X and Y but now the colours seem inverted. Selecting TFT_BLACK results in writing in WHITE.
I have tried using the function TFT_invertDisplay(INVERT_ON) but that does not seem to do anything. Is there another way to correct the colours ?

Richard

Image of board..
https://i.ebayimg.com/00/s/MTAwMVgxMDAx/z/V4QAAOSwdUxddzs6/$_10.JPG?set_id=880000500F

Added code for _offsets .. its not generic as this is an experiment.

RichardPar@954110c

=========== BASIC CONFIG ====================
#define DEFAULT_DISP_TYPE DISP_TYPE_ST7789V
#define DEFAULT_TFT_DISPLAY_WIDTH 188-52
#define DEFAULT_TFT_DISPLAY_HEIGHT 280-40
#define DISP_COLOR_BITS_24 0x66
#define DEFAULT_GAMMA_CURVE 1
#define DEFAULT_SPI_CLOCK 26000000
#define TFT_INVERT_ROTATION 0
#define TFT_INVERT_ROTATION1 1
#define TFT_RGB_BGR 0x00

@frhun
Copy link

frhun commented Mar 22, 2020

I added pretty much full support for the TTGO T-Display here: jeremyjh#4

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

2 participants