Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Black screen #31

Closed
sonastyle opened this issue Jan 9, 2020 · 8 comments
Closed

Black screen #31

sonastyle opened this issue Jan 9, 2020 · 8 comments

Comments

@sonastyle
Copy link

Only getting Grey-black screen although touch is working properly.
I tested with custom design graphics and touch settings with core bodmer lib which are working perfectly.
Even if in the lvgl example (TFT_ESPI_SLIDER) code I can use bodmer TFT_ESPI object and draw rect properly but lvgl code (slider, label) is not working any how.

Picture with default slider example
Default_lvgl_slider_example

Picture with default slider example and blue fill screen and red rectangle draw using Tft_Espi object before and after lvgl code.
Slider__example_with_custom_code

When I Touched the screen the following data is appeared also -

Data x110
Data y103
Slider Pressed
SliderSliderSlider Short clicked
Slider Clicked
Slider Released
Data x132
Data y96
Slider Pressed
SliderSliderData x129
Data y93
SliderSliderSlider Short clicked
Slider Clicked
Slider Released

Please guide me if anything I'm missing.

@Pablo2048
Copy link
Collaborator

So youre saying, that the LCD is working with just TFT_eSPI examples, but not with lv_arduino examples?

@sonastyle
Copy link
Author

sonastyle commented Jan 9, 2020

So youre saying, that the LCD is working with just TFT_eSPI examples, but not with lv_arduino examples?

  • Yes, I have created several graphics like switch, slider by raw TFT_eSPI object which are also working with the example ...slider code but any lvgl function like label, slider is not working.

Display: 2.8" SPI ILI9341
IDE: Arduino ESP32 core 1.0.4

Almost same as - #4 (comment)

@Pablo2048
Copy link
Collaborator

Are you using the same user_setup from TFT_eSPI examples with lv_arduino one? Can you please try the simplest lv_arduino example first (just label on the screen)? Which version on lv_arduino are you using?

@sonastyle
Copy link
Author

Same result with simple label example - No lvgl function works.

using - https://github.com/littlevgl/lv_arduino

  • same user_setup from TFT_eSPI examples

For ensuring that bodmer TFT_SPI and SPI conf is working I just add -

tft.fillRect(20, 20, 100, 100, TFT_RED); //

at the end of setup() and the red rectangle drawn perfectly but lvgl label does not work.

Please see the result
WhatsApp Image 2020-01-09 at 3 22 14 PM

  • Thanks for your co operation

@Pablo2048
Copy link
Collaborator

So you are not using any version, installed by the Library manager? Can you please check, if older version of the library works with your LCD? You can get V2.0.3 from releases page.

@sonastyle
Copy link
Author

sonastyle commented Jan 9, 2020

I replace the library with https://github.com/littlevgl/lv_arduino/releases/tag/2.0.3 but still no luck.

I'm attaching the code and lvgl_config.h

code.txt
lv_conf.txt

I'm using ESP32 VSPI bus and backlit led directly connected with 3v3 vcc.

@Pablo2048
Copy link
Collaborator

Well, it seems like I'm short of ideas what to do next... Can you please test it again with TFT_eSPI version 1.4.11? This is the version I've used.

@sonastyle
Copy link
Author

Well, it seems like I'm short of ideas what to do next... Can you please test it again with TFT_eSPI version 1.4.11? This is the version I've used.

I updated TFT_eSPI to latest v1.4.20 (previously was 1.3.10) and its now working! Thanks a lot!

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

No branches or pull requests

2 participants