cancel
Showing results for 
Search instead for 
Did you mean: 

I need an example code to operate qwerty keypad using joystick which is available on stm32h743 eval board... Please anyone help me out in this.. I'm struggling from many days ...... Thank u

KM L.1
Associate II
 
29 REPLIES 29
KM L.1
Associate II

First thing is I wanted to know how to communicate between hardware button and touchGFX.

Then how to make hardware button to act as trigger as I went through your article I didn't get where to add that piece of code .

As I'm new for touchGFX and c++ I don't know how to integrate the joystick part with the touchGFX QWERTY keypad code . The thing is I wanted to operate QWERTY keypad using joystick buttons which is on eval board without using touch.

KM L.1
Associate II

As I'm working on STM32CubeIDE , can I integrate stm32 HAL function with the c++ touchGFX code?

Martin KJELDSEN
Chief III

Okay, if you're new to C++ it may be a bit tricky, i don't know. Here are the general steps:

1) Either sample the buttons directly in Model::tick() function (this function is driven by your display timings, typically) ~every 16ms

2) Sample in a different task (in your OS of choice, FreeRTOS is the default from CubeMX) and send that message through a queue which is polled in Model::tick()

3) Interrupt based

The article describes how to make the button act as a trigger in the designer (For instance, when JOY_UP pressed, switch screen), but you don't necessarily need that

I would start by calling your HAL functions directly in Model::tick() to get a feel for how things work. And read this:

https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/backend-communication/#transmitting-data-from-ui-to-surrounding-system

/Martin

KM L.1
Associate II

okay I will look into this..

KM L.1
Associate II

Hi Martin,.

By looking into your webinar I created task for hardware integration but after that nothing is displaying on the LCD ... So what may be the issue?

KM L.1
Associate II

Now able to react to the button pressed .

Now how to make the keyboard to react to the buttons?

KM L.1
Associate II

Please anyone support in this as i'm new to this​

Back from vacation. Did you get any further?

KM L.1
Associate II

Yes one of your team membrane helped me out and its working fine with the joystick.

Thank you:smiling_face_with_smiling_eyes:

Perfect :)