Skip to main content
KM L.1
Associate III
May 30, 2020
Question

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

  • May 30, 2020
  • 29 replies
  • 3684 views

..

This topic has been closed for replies.

29 replies

KM L.1
KM L.1Author
Associate III
June 10, 2020

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

Martin KJELDSEN
Principal III
June 10, 2020

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
KM L.1Author
Associate III
June 10, 2020

okay I will look into this..

KM L.1
KM L.1Author
Associate III
July 16, 2020

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
KM L.1Author
Associate III
July 18, 2020

Now able to react to the button pressed .

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

KM L.1
KM L.1Author
Associate III
July 19, 2020

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

Martin KJELDSEN
Principal III
August 10, 2020

Back from vacation. Did you get any further?

KM L.1
KM L.1Author
Associate III
August 10, 2020

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

Thank you:smiling_face_with_smiling_eyes:

Martin KJELDSEN
Principal III
August 10, 2020

Perfect :)