Bodmer / TFT_eFEX

A support library for TFT_eSPI that adds commonly used extra functions
Other
83 stars 27 forks source link

can't get display to work #8

Closed mark-hahn closed 5 years ago

mark-hahn commented 5 years ago

I have a "TFT LCD Screen Display 1.3inch TFT LCD Module, 240240 IPS 65K Full Color 3.3V with SPI Interface ST7789 IC Driver" module. I wanted to post an image but I can't figure out how to do that here.

I have a custom board with an esp-12. Everything compiles and loads fine. I'm trying this code ...

#include <Arduino.h>
#include <SPI.h>
#include <TFT_eSPI.h> 
TFT_eSPI tft = TFT_eSPI();
void setup() {
  tft.init();
  tft.fillScreen(TFT_RED);
}
void loop() {
  yield();
}

My setup is ...

TFT_eSPI ver = 1.4.5
Processor    = ESP8266
Frequency    = 80 MHz
Voltage      = 3.78 V
Transactions = No 
Interface    = SPI 
SPI overlap  = No 

Display driver = 7789
Display width  = 240 
Display height = 240 

R0 y offset = 80 
TFT_DC   = D8 (GPIO 15)
TFT_RST  = D3 (GPIO 0)

Font GLCD   loaded
Font 2      loaded
Font 4      loaded
Font 6      loaded
Font 7      loaded
Font 8      loaded
Smooth font enabled
Display SPI frequency = 10.0 MHz 

I know the setup is good because I see the pins working on the module. I hooked a scope up to all the active pins on my module: clock, data, reset, and cmd-data. Everything looks good. I even went through all the commands sent: setup, row and column addresses, and then the write. I can even see the red values in the data. The backlight is on but the screen is blank. I have tried two display modules.

Any ideas on what I should try next? Does anyone know a better forum to post this?

mark-hahn commented 5 years ago

Oops. Wrong forum.