Choose a display... (GLCD/colour) with touch?

For general Flowcode discussion that does not belong in the other sections.
Post Reply
MJU20
Posts: 245
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Choose a display... (GLCD/colour) with touch?

Post by MJU20 »

I'm looking for a (cheap) display to show some results of a measurement.

Now I'm using a (cheap) SSD1306 monochrome 0.96" display and this nearly can show everything I want.
But I want to upgrade :-) Colour! YEAH! :-)
And slightly larger then 128*64 pixels.

But there are some questions before I ask China to send me some.
- I'm thinking of using an ILI9341 display is this the same as ST7735? Displays on Ali..ss mention this the same with "ILI9225 ILI9341"
- How can I with, for instance the ILI9341 macro use multiple colours on the display? I see only parameters in the component macro for foreground/background colours. How can I print several things in different colours?
- Is there a simple (cheap) display recommended with touch capability that will work with a ESP32?
- What component can I use to use the touchscreen?

More questions to come...

stefan.erni
Valued Contributor
Posts: 758
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: Choose a display... (GLCD/colour) with touch?

Post by stefan.erni »

Hi MJU20

Here a info about the color. Its working also in the simulation

Just set the front color before you print a text, line or circle.

regards

Stefan


Demo:
code_2022-07-18_9-49-48.jpg
code_2022-07-18_9-49-48.jpg (27.98 KiB) Viewed 1612 times
screen_2022-07-18_9-49-27.jpg
screen_2022-07-18_9-49-27.jpg (9.75 KiB) Viewed 1612 times

MJU20
Posts: 245
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: Choose a display... (GLCD/colour) with touch?

Post by MJU20 »

Thanks stefan.erni!

Does anyone use these type of displays?
Ever used the touchpanel versions?

I have ordered a few 2.4" display's (with and without touch)..

stefan.erni
Valued Contributor
Posts: 758
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: Choose a display... (GLCD/colour) with touch?

Post by stefan.erni »

Hi MJU20

I use some color display and its working fine with FC9

LCD_SSD1351 SPI Display
GLCD_ILI9341_SPI1

You can post your order so we can see which display and touchscreen you will use.

regards

Stefan

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: Choose a display... (GLCD/colour) with touch?

Post by jgu1 »

Hi Mju20

I have used the Ili9341 SPI touch with ESP32 it is working Perfect and Ben managed to speed it up so it is really fast.

Lately Ben also get the Ili9488 working,also Perfect :D

If you want I can send you some exambles of mit project, then you can copy and paste :D

Br Jorgen

MJU20
Posts: 245
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: Choose a display... (GLCD/colour) with touch?

Post by MJU20 »

Hey guys,

Thanks for your reactions!
Happy to hear that you've got experience with these displays (and are happy with them) :D

Some of the display's I've ordered:
https://www.aliexpress.com/item/1005003943508410.html
https://www.aliexpress.com/item/1005001423263081.html
https://www.aliexpress.com/item/1005001636468878.html

@JGU: you can always share a file so I can prepare and learn.

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: Choose a display... (GLCD/colour) with touch?

Post by jgu1 »

Hi MJU20!

"Better late than never" :D

Hereby as promised. The "Standard " examble is one I use as startup when I make a new project, then I know the display working correctly and config and connection is ok. When this is done I begin to build up the project and rename the new project.
In the comment in the beginning you can see how I have connect the display. If you enable or disable the macro touchtest. When enable the display show the X and Y coordinate when you press on the display. And of course you need to have a display with touch.

The "KoreCompStort Disp" Is a project I have made to help me everyday. In my work I drive a lot so I have to registre my driving time, km and working time. I use it every day.
Please, I am sure someone will say this could be done easyer, so don´t laugh :D
Hope this can help you a little in your project and maybe you find the "ligth" and you can copy. Remember first time you compile, it take a while. These display work well with ESP32 and FC9.

Br jorgen
Attachments
KorecompStortDispTripG.fcfx
(132.94 KiB) Downloaded 59 times
Standard.fcfx
(24.51 KiB) Downloaded 63 times

MJU20
Posts: 245
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: Choose a display... (GLCD/colour) with touch?

Post by MJU20 »

Thank you jgu1!

As soon as I receive the display's I will start test them with you files!
Cheers

Post Reply