Skip to main content
Associate III
July 25, 2023
Solved

How to change the values in TextArea, according to the User Input with the external peripherals?

  • July 25, 2023
  • 3 replies
  • 3760 views

Hii,

In the TouchGFX Designer, I have taken a TextArea and have added a wildcard, given 000 as initial value and 3 as buffer size. In the Typographies, I have given wildcard range 0-9.

I am working with the STM32H745XIH6 Board. With the external peripherals like UART, ADC and TIMER I want to change the values in the TextArea according to the user input. How?

    This topic has been closed for replies.
    Best answer by Shivani

    Hii,

    I am using Single Framebuffer.

    3 replies

    Yoann KLEIN
    ST Employee
    July 27, 2023

    Hello @Shivani,

    I think that you need to collect the data from your peripherals in the Model, and then propagate them through the Presenter, to the View. You can take a look at this article that explains this MVP pattern pretty good.

    Then, when you have access to the values in the View.cpp, you can do this to show them in your TextArea, using your wildcard : 

     

    Unicode::snprintf(TextArea1Buffer, TEXTAREA1_SIZE, "%d", yourdata);
    TextArea1.invalidate();

     

     Hope it helps :)

    Yoann KLEINST Software Developer | TouchGFX
    ShivaniAuthor
    Associate III
    July 31, 2023

    Thank you @Yoann KLEIN 

    ShivaniAuthor
    Associate III
    July 31, 2023

    Hii,

    I have changed the values repeatedly in foreground through TextArea, while the image is tilting in the background.

    But it is worked fine in Simulator, but  I am getting some disturbance image while I am trying  to display in the STM32F746G Discovery Board. I am unable to load the simulated image in the board when the foreground values are changing and the image is moving in the background simultaneously...

    Yoann KLEIN
    ST Employee
    August 2, 2023

    Hi,

    Could you share some video or screenshots of the problem ?

    Yoann KLEINST Software Developer | TouchGFX
    ShivaniAuthor
    Associate III
    August 3, 2023

    DisplayImage01.jpgDisplayImage02.jpgDisplayImage03.jpg

    Yoann KLEIN
    ST Employee
    August 23, 2023

    Hello,

    Which kind of Framebuffer strategy are you using ?

    Single, Double or Partial ?

    Yoann KLEINST Software Developer | TouchGFX
    ShivaniAuthorBest answer
    Associate III
    August 24, 2023

    Hii,

    I am using Single Framebuffer.