Page 1 of 1

Creating custom touch keypads for gLCDs

Posted: Fri Mar 28, 2025 10:18 am
by medelec35
For those that are interested in touch gLCDs, who struggle to create their own touch keypad, we have added the ideal solution to the Graphical LCD Display manager.
Not only will it create the widgets as keypad buttons with your custom text, it allows you to click on the widgets so you have a working keypad.
Simulation works great!:
Updated  Display Manager1.png
Updated Display Manager1.png (36.63 KiB) Viewed 6077 times
An example project has been created, so you can have a working keypad on your gLCD.
This is the function macro that is very flexible in what you can create:
Updated  Display Manager2.png
Updated Display Manager2.png (104.98 KiB) Viewed 6077 times
Lots of flexibility and there are also tooltips to help.
Updated  Display Manager3.png
Updated Display Manager3.png (28.71 KiB) Viewed 6077 times
Make sure you download the latest component updates, then reload project before running and sending to hardware.

How the key touch is detected
The first widget is automatically assigned a unique widget ID e.g. the first widget with text 1 on it is assigned 24.
All the following widgets ID is then incremented from 24, e.g. widget with text 6 on is assigned 24+ 5 = 29.
The widget button pressed can then be calculated from 29 – 24 + 1 = 6.

Note: if you get a unable to run simulation error or compile error, then make sure you have the latest components downloaded.

Re: Creating custom touch keypads for gLCDs

Posted: Fri Mar 28, 2025 11:04 am
by chipfryer27
Hi Martin

That looks as though it will be very handy indeed.

Regards

Re: Creating custom touch keypads for gLCDs

Posted: Fri Mar 28, 2025 11:51 am
by medelec35
Thanks,
It was something we at Matrix wanted to create as its so handy for menus or RTC time/date setting.
You can have as many or as little keys as you like, and can be any size with any label.
It is versatile.
I'm going to be using it for my power monitor project so I can manually set the RTC if no internet is available, to reset energy used and to set price for KWh.
No more trying to set up and object and calculating if its been pressed or not.

I have just edited my first post to explain how the touch is detected.

Re: Creating custom touch keypads for gLCDs

Posted: Sun Mar 30, 2025 8:39 pm
by daddytims_tims
Hi Martin

You added this example at the right time.
I thought about it.

I will test it out , when I get the time.

Regards

Re: Creating custom touch keypads for gLCDs

Posted: Mon Mar 31, 2025 6:56 am
by jgu1
Hi Martin!

First seen this now, I will also make a test :D

Thank´s

Br Jorgen

Re: Creating custom touch keypads for gLCDs

Posted: Mon Mar 31, 2025 6:26 pm
by jgu1
Hi Martin!

First I try to simulate, get the error init, and if I try to compile I also get error, the init is there?

:)

Br Jorgen

Re: Creating custom touch keypads for gLCDs

Posted: Tue Apr 01, 2025 12:12 am
by medelec35
Hi Jorgen have you updated your components database so you have the latest Graphical LCD Manager?

Also Strings are being worked on.
As soon as they are completed, I will let you know.
Have you you tried the file from here?

Re: Creating custom touch keypads for gLCDs

Posted: Wed Apr 02, 2025 2:56 pm
by daddytims_tims
Hi medelec35

I also have a play with the keypad.
It worked out very well, Comes in handy for quite alot of stuffs


Thanks again


Regards

Re: Creating custom touch keypads for gLCDs

Posted: Wed Apr 02, 2025 3:15 pm
by medelec35
Thanks for letting us know.
It was a component I have wanted for sometime.
I'm glad it works very well, and I also use it within my projects.