2020-04-11 10:35 AM
Hi,
I have working on below setup:
Software Tool Chain:
STM32CubeMX 5.6.0
TouchGFX 4.13.0 Designer
STM32CubeIDE 1.2.0
Hardware:
STM32F746G-DISCO (Discovery Board)
I am able to read USB Files names (1.txt, abc.png , mno.txt etc ) from Thumb drive to Serial Port.
On TouchGFX Side . I am able to use Button, Static Txt ,Slides etc.
How I Can read USB File Names with FreeRTOS and put in List Layout with <Fwd><Rev> <select> button with TouchGFX ?
Is there any demo as above ?
Thanks is advance .
--
Karan
2020-04-21 07:47 AM
Hi,
I am able to send Text information from PC UART to TouchGFX Text Area (with WildCard).
How do I show List of File names from USB Thumb Drive with
<Fwd> <Rev> for Scrolling Images if all file names are not fit on screen .
<select> Selected File Name should be Highlighted .
<remove> for remove/Delete from List
with TouchGFX ?
Which Widget should I use ..
Is there any demo in TouchGFX ?
Please Advice ..
--
Karan
2020-04-22 12:29 AM
Scroll Wheel - It has a "selected item" in the center. Read the doc about it at support.touchgfx.com.
2020-04-22 03:16 AM
@Martin KJELDSEN (ST Employee)
Thanks for link . I have read and run demo "Scroll Wheel and Scroll List " as below:
1) Is it possible to "Highlight " Selected any item on click ,rather than center ?
2) Can I use <Fwd> <Rev> Button for Scrolling ?
2020-04-24 12:24 AM
@Martin KJELDSEN (ST Employee)
How to update any variable (like from USB / SDCARD/UART/ADC ) in ScrollList or Scroll Wheel elements that uses containers
Like Below in TextArea with WildCard which I have done for UART (uartMsgBuf received from Model.cpp either the xSemaphore or XQueue):
void Screen1View::uartMsgRdy()
{
if(uartMsgBuf[0]==0)
return ;
memset(&textArea1Buffer , 0 , TEXTAREA1_SIZE) ;
//
Unicode::strncpy(textArea1Buffer ,(char *) uartMsgBuf, TEXTAREA1_SIZE -1 );
textArea1Buffer[16] = '\0'; // Make Sure Last Element is NULL
textArea1.invalidate();
}
How to made changes in this ?
void Screen1View::setupScreen()
{
// The item selected callbacks are registerd with scroll wheel and list
scrollList.setItemSelectedCallback(scrollListItemSelectedCallback);
scrollWheel.setAnimateToCallback(scrollWheelAnimateToCallback);
// The scroll wheel and list is updated to show the selected icons and numbers.
for (int i = 0; i < scrollListListItems.getNumberOfDrawables(); i++)
{
scrollList.itemChanged(i);
}
scrollWheel.animateToItem(15);
}
Please advice..
--
Karan