cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate Qwerty keyboard example code into and existing TocgGFX project

Garnett.Robert
Senior III

Hi,

I have project running on an STM32H7B3I-DK. I need to use the display to enter WiFi data SSID, password etc.

I don't really want to spend a week writing my own so I thought I'd use the example in Touchgfx

0693W00000NqzhqQAB.png 

Has anyone done this?

What steps do I need and how do I instantiate it and get the reurn string?

Best regards

Rob

1 REPLY 1
Yoann KLEIN
ST Employee

Hello @Garnett.Robert​ ,

I will share you a project my team did and that implements a concrete example of using a keyboard, getting the result of what the user entered, and triggering an action after comparing the user string with a known buffer.

You can look at the Screen1View::keyboardDonePressed(Unicode::UnicodeChar buffer[]) method, to understand how the process work.

To explain with more details, every time the user presses the "DONE" button on the custom keyboard widget, a callback in Screen1View.cpp is triggered, and then the given string is passed to the keyboardDonePressed(Unicode::UnicodeChar) method, which will compare this string with a known buffer to display images on the screen, or not.

So you can get inspiration from this example an adapt it for your needs.

Let me know if you have other questions.

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX