2022-05-31 11:58 PM
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
Has anyone done this?
What steps do I need and how do I instantiate it and get the reurn string?
Best regards
Rob
2022-06-07 03:00 AM
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