cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX List Layout from USB Mass Storage Device .

Karan 123
Senior

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

4 REPLIES 4
Karan 123
Senior

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 ..

0693W000000WBtbQAG.png

Is there any demo in TouchGFX ?

Please Advice ..

--

Karan

Scroll Wheel - It has a "selected item" in the center. Read the doc about it at support.touchgfx.com.

Karan 123
Senior

@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 ?

0693W000000WFYgQAO.png0693W000000WFYWQA4.png

Karan 123
Senior

@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