ESP32 TFT display library

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: ESP32 TFT display library

Postby Vader_Mester » Tue Apr 03, 2018 7:24 am

loboris wrote:
Vader_Mester wrote:The ILI4988 is actually 16bit color. Even if you send color in 24 bit mode, it will ignore the lower 3bits of red and blue and the lower 2bits of green.
It is in the datasheet, but don't remember where exactly.
This is not true.

Look at Data sheet page 122.
Yeah you are right, somehow 16bits was in the back of my head.
I would prefer the 24bit method anyway, cause it is indeed faster to crunch, if your source data is also 24bits.

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: ESP32 TFT display library

Postby Deouss » Fri May 18, 2018 4:22 pm

Can you add CMake support for this library?

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: ESP32 TFT display library

Postby Deouss » Sat May 19, 2018 5:17 pm

I was experimenting with CMake builds and somehow successfully compiled the tft_demo project.
However got warning that flash image is 2.5MB - which is fine - it just needed updating flash size in menuconfig to 4MB.
I hope DevkitC has 4MB flash. Just gave it a shot and the flashing went thru.
I am new to 'make' environments' - I can see component concept as dependency files/objects in the 'make' project.
Just to mention - CMake compiled probably 10X faster than regular Make based on msys32 - mingw32

Project however still does not work with my TFT which is a clone of adafruit 3.2" ILI9342 320x240
I use defaults for SPI / 8MHz
I'd appreciate any hints
thanks

sukeshak
Posts: 50
Joined: Sat Aug 19, 2017 10:20 am
Contact:

Re: ESP32 TFT display library

Postby sukeshak » Sat Jun 09, 2018 12:56 pm

rolobr wrote:@loboris:

I discovered that in another function the following function was called to create a header:

Code: Select all

 TFT_setclipwin(0,TFT_getfontheight()+9, _width-1, _height-TFT_getfontheight()-10);
If I do not use this then the TFT_clearStringRect works as supposed to :-)
The creation of a font I will try.
Thanks again for the great library!
I am having the same issue.
Did you mean you removed the entire header & footer option to make TFT_clearStringRect work?


Also @loboris
Thank you so much for this display library :)
The SD card and this TFT display does not work together. Any idea how to fix this? :?:

rolobr
Posts: 7
Joined: Thu Feb 15, 2018 3:49 pm

Re: ESP32 TFT display library

Postby rolobr » Fri Jun 15, 2018 1:11 pm

sukeshak wrote:
rolobr wrote:
Did you mean you removed the entire header & footer option to make TFT_clearStringRect work?
:?:
Yes, I removed it completely.

sukeshak
Posts: 50
Joined: Sat Aug 19, 2017 10:20 am
Contact:

Re: ESP32 TFT display library

Postby sukeshak » Tue Jun 19, 2018 12:37 pm

@rolobr Thank you.

Any help on making SD Card using SPI and this library work together ?

I am stuck now since this an important requirement for me :(

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: ESP32 TFT display library

Postby loboris » Tue Jun 19, 2018 7:43 pm

sukeshak wrote:@rolobr Thank you.

Any help on making SD Card using SPI and this library work together ?

I am stuck now since this an important requirement for me :(
I have SDCard in SPI mode and display working together in my MicroPython project.
It requires some changes to esp-idf sources (sdmmc_cmd.c, spi_master.c). When I'll have some free time I'll try to port it to ESP32 TFT display library.

It was tested with M5Stack and Adafruit TFT FeatherWing on which only SPI mode can be used for SDCard, and works well.

sukeshak
Posts: 50
Joined: Sat Aug 19, 2017 10:20 am
Contact:

Re: ESP32 TFT display library

Postby sukeshak » Sat Jun 23, 2018 7:30 pm

loboris wrote:
sukeshak wrote:@rolobr Thank you.

Any help on making SD Card using SPI and this library work together ?

I am stuck now since this an important requirement for me :(
I have SDCard in SPI mode and display working together in my MicroPython project.
It requires some changes to esp-idf sources (sdmmc_cmd.c, spi_master.c). When I'll have some free time I'll try to port it to ESP32 TFT display library.

It was tested with M5Stack and Adafruit TFT FeatherWing on which only SPI mode can be used for SDCard, and works well.

Thank you the response and good to know the support is coming soon.
Since I could not wait I have moved to Arduino+ESP-IDF+C++ combination using another library.
Once you fix it, will re-evaluate my options.


Also please take a look at the TFT_clearStringRect function which also has a bug and some fast way to update a portion of the screen data without screen flickering.

Appreciate your efforts and time.

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: ESP32 TFT display library

Postby Deouss » Thu Jun 28, 2018 1:56 pm

I just received TFT 480x854 24bit display with ILI9806 driver.
Can I use this library for it?

4.5" display link

I also wanted to update that library is amazing. Colors seem to look much better than with ucglib.
It also compiled much faster than Arduino - maybe because Im using CMake.
I currently am trying to add SPI support for that parallel tft. It has all traces on the pcb for the smd that look like placeholder for shift register and even touchscreen ic. Very interesting

Grandpa
Posts: 4
Joined: Mon Jul 23, 2018 8:15 pm

Re: ESP32 TFT display library

Postby Grandpa » Mon Jul 23, 2018 8:25 pm

JanJansen47 wrote:I measured the signals with a scope and found a strange signal on the SDO from TFT and Touch (same line). I disconnected the SDO connection from the TFT and directly wired it to the Touch.
At least TFT and touch is working for now. ;) But it does not feel okay. So I ask the supplier.
My wiring is available on request.
I'm struggling to get the touch working with the ER-TFTM035-6 display...

Could you please explain what you mean exactly by "I disconnected the SDO connection from the TFT and directly wired it to the Touch" or provide the full wiring you're using. I've tried many things but just can't get the touch to work.

:?: :?: :?:

Who is online

Users browsing this forum: No registered users and 9 guests