2021-12-20 07:25 AM
Hi
I have 10 variables(wildcards) on the screen and 4 pushbuttons(up,down,left,right). I need need to move between them and the chosen number become red. I know how to send variables and flags from the backend to the view through the MVP. my question is how to write the code for moving and changing the color of vars in the screen view?
I would appreciate any help. thank you in advance.
2022-02-18 03:33 AM
Hello @Zakba.1 ,
I worked on a project that implements a TextArea matrix (3*4 elements), and which enables the user to navigate through and select different items of this matrix.
Each of those items are wildcards and are set as numbers from 1 to 12 in the Screen1View.cpp setup method.
When the user navigates in the matrix, the new selected element font turns red and the previous one turns black again. There is also a cursor around the selected item that helps the user to locate more easily the element in the matrix.
I used a STM32G071 NUCLEO board for this project. It is equipped with a 4-directionnal joystick.
You will find the .zip project file attached to this post.
Please let me know if it helped you,
/Yoann