My LCD Screen is constantly white #2071
Replies: 9 comments 25 replies
-
The CS signal is active low, so you must tie LCD_CS low, i.e. to 0V (GND). You have not connected the RD pin to the processor so reading pixel data will not work! |
Beta Was this translation helpful? Give feedback.
-
I think you can drop away all the resistances,connect CS to GND,even if it is declared to GPIO27 in the setup,don't need the pinMode |
Beta Was this translation helpful? Give feedback.
-
I noticed that in #if defined (TFT_PARALLEL_8_BIT)
// TFT_DC, by design, must be in range 0-31 for single register parallel write
#if (TFT_DC >= 0) && (TFT_DC < 32)
#define DC_C GPIO.out_w1tc = (1 << TFT_DC)
#define DC_D GPIO.out_w1ts = (1 << TFT_DC)
#else
#define DC_C
#define DC_D
#endif
#else
...
#endif But I set DC to GPIO33 and WR to GPIO32, is this the problem? |
Beta Was this translation helpful? Give feedback.
-
Yes it could be, i remember RST can be wired to GPIO32 or 33 ,but TFT_D0 ... TFT_D7 can be wired up to GPIO31, the same //-------------------SSD1963 & ESP32------------------------ #define TFT_PARALLEL_8_BIT #define SSD1963_800ALT_DRIVER // Untested #define TFT_RGB_ORDER TFT_RGB // Colour order Red-Green-Blue #define TFT_MISO 19 //#define TOUCH_CS 5 // Chip select pin (T_CS) of touch screen #define TFT_CS 22 //or -->(GND) Chip select control pin (library pulls permanently low #define TFT_WR 4 // Write strobe control pin - must use a pin in the range 0-31 #define TFT_D0 12 // Must use pins in the range 0-31 for the data bus #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH #define SMOOTH_FONT #define SPI_FREQUENCY 20000000 #define SPI_READ_FREQUENCY 20000000 #define SPI_TOUCH_FREQUENCY 2500000 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Did you wired LEDA direcly to 3,3V and verify if there is 3,3V between LEDA(anode) and LEDK(cathode)? |
Beta Was this translation helpful? Give feedback.
-
In the TFT setup,down page,you have frequencies you can define: #define SPI_FREQUENCY 20000000 I've seen on a forum someone lower to 1000000 to correct colors,maybe you can test it, i see your platformio On your wiring , i see IOVCC wired to VCC,what is this? A potentiometer stuff aim to control the lighting? You could also show us pictures or http adress of the seller page where you bought it the TFT Is your alimentation support the tft consommation, wich often goes to 500mA ! ? Finally,you can test it via the arduino IDE and transpose your setup settings. Good luck! |
Beta Was this translation helpful? Give feedback.
-
It's a nice piece of board! |
Beta Was this translation helpful? Give feedback.
-
There is a good news for me that I can finally successfully run the esp-idf example on my board with my LCD! This proves that the wire connections on my board are correct. |
Beta Was this translation helpful? Give feedback.
-
I'm using ESP32-WROOM-32E and an 8-bit MCU LCD. The LCD is driven by ST7789V and has white led back light.
![](https://user-images.githubusercontent.com/55647556/195036090-e67163fb-1720-43be-86b3-f710bde91396.png)
The hardware connection is like this:
I've correctly set macros to fit this lcd via
platformio.ini
and passedTFT_User_Setup
Test with following output:One minor problem is that before these it said:
I think it may be the problem that
TFT_RD
is defiened as-1
, but it is both useless either adding-UTFT_RD
inbuild_flags
or adding#undef TFT_RD
in source file.TFT_ReadWrite_Test
failed with following output:I saw #1932 (comment) where @gjssss said that it may have something to do with backlight pin ad CS pin, but I'm not fully understand.
Could someone please help me? I'd like to know what the problem is, is it because the difference between ST7789 and ST7789V or because of the white backlight or because of the wrong wiring?
Beta Was this translation helpful? Give feedback.
All reactions