-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ST7789 240*240 RED and BLUE swap and only work when define #define ILI9341_DRIVER #322
Comments
and one more issue I I found with smooth font that I cant use any custom *vlv font that I created with the processing tool, the sketch data upload successfully and only default font (that you already included in the data folder) display, my font (that created with processing and coppied to the same datafolder) wouldnt show and the serial monitor show: SPIFFS available! Fonts found OK. |
I suspect SPIFFS does not allow spaces in file names. you can't use underscore either, use - instead. Did you define the width and height? |
Yes! I did, both case ( ILI9341 and ST7789) I defined 240*240 in user setup |
OK, I will investigate. The ST7789 files were updated via a pull request from a library user a while ago so there may be an issue there. |
Yes, there is an issue introduced by the pull request a while ago: I will make a change and hopefully that will fix one of the issues regarding the colours. I will investigate the font file issue. Can you provide a minimal example as a zip file that demonstrates the problem? |
I will give you the original OTF font and the Converted vlw, the sketch is demo font example |
Are you using ESP32 or ESP8266? |
I'm using ESP8266. thanks |
I adapted the Font_Demo_2 example to use the "BIG JOHN72" vlw font you provided and it is working fine on both ESP32 and ESP8266. Try this: |
Ah yes my bad, |
This is the setup I used on a 240x240 ST7789 display with an ESP32. You should only need to change it to the pin numbers you use:
These are the pins I used for the ESP8266:
Have you tried any other examples? |
I've use the same setup for esp8266 as your post, still black screen after upload |
This indicates the init code is not working wth your display. There are diferent versions of the display chip but I would expect them to use the same init code. Can you post a picture of the front andback of your display and a link to the sellers web page. |
I have tried using the ILI9341 driver with my ST7789 240x240 display and it does not work, the display remains completely blank. This demonstrates your display is different to mine in some way. It may be the driver chip version or it may be a completely different driver chip in yours. So post photos of your display. |
here. I have the sample for you. it looks like the DSTIKE ST7789 1.3 inch that I saw a pull request before |
Your display looks identical to mine. The only difference remaining is that I am using an ESP32 for my tests. I will try connecting my display to an ESP8266 and see if the results are different. |
I have come to the conclusion that the display is not being reset correctly when the ESP8266 reset pin is used as for a while the display receives garbage until the SPI bus is stable. In the next few days I will add further delays at start up and always add a software reset. |
hey guys, anyone tried this library with M0 based boards? i got one coming my way i wonder if i can use this library for ST7789 240*240 TFT. thanks |
This library is for ESP8266 and ESP32 only. It uses low level register calls for performance reasons, and these calls are not compatible with the M0. |
I'm still waiting for this fix. |
for the red / blue switch, set in ILI9341_Rotation.h at the top change ILI9481_Init.h |
I have tried various setups and have found that these displays need to have the reset pin (RES) driven by a hardware pin otherwise initialization is not reliable. The problem is that with CS tied low there is no start of clock signal and thus spurious clocks at start up upsets the display. I therefore suggest that you try a hardware reset signal. If that does not work then unfortunately I have no solution. |
seems to work with your latest suggestion. used a lolin nodemcu v3 & this as a display from aliexpress.com |
Hello, thanks for the library
Im facing a weird problem with st7789 240*240 ips
if I define chip model as st7789 in user-setup.h the screen remain black with color test sketch, regardless the settings (reset pin =-1, height and width defined 240, both test with and without rotation)
if I define chip model as ILI9341 in user-setup.h the screen display ok with these settings:
-rotation(2)
-comment out reset=-1( even I connect LCD reset pin with node mcu reset)
-color invert set to ON
please help me
The text was updated successfully, but these errors were encountered: