Hello,
I am working with an RT1062 dev board with LCD screen. I have successfully displayed binary graphics to the display and am reasonably certain that the display is working as intended using the SDK.
Due to the fact that our system will be running Azure RTOS, I am trying to get GUIX setup so that I can use GUIX Studio to develop the GUI and then run it on the dev board. Following the example https://docs.microsoft.com/en-us/azure/rtos/guix/guix-studio-10 as a guide, I have setup a GUIX studio project and successfully integrated it into my code such that I can now execute my code and see the screen update with the intended canvas color. (I used this as a simple check to ensure that GUIX was initialized and working.)
That said, I have added a text prompt and some button icons, but only the canvas color is shown. I have tried playing with the properties, setting the Z level to top-most, changing the text font/color, etc... In MCUXpresso, I have copied and pasted the example and updated the variable names, but no luck.
Has anyone else setup and used GUIX studio to generate and run a GUI on the RT1062?
Code:
void XXX::_initDisplay( GX_WINDOW_ROOT * _window)
{
/* Initialize the GUIX library */
gx_system_initialize();
/* Configure the main display. */
gx_studio_display_configure(
LCD_DISPLAY, /* Display to configure*/
_graphicsDriver, /* Driver to use */
LANGUAGE_ENGLISH, /* Language to install */
LCD_DISPLAY_THEME_1, /* Theme to install */
&_window); /* Root window pointer */
/* Create the screen - attached to root window. */
gx_studio_named_widget_create(
( char *) _DISPLAY_NAME.c_str(),
(GX_WIDGET *) _window,
GX_NULL);
/* Show the root window to make it visible. */
gx_widget_show( _window);
}
void XXX::_threadEntry( ULONG thread_input)
{
/* Let GUIX run. */
gx_system_start();
// Enable the backlight
_lcd_display->setBacklightEnable( true);
while(1)
{
tx_thread_sleep( _THREAD_SLEEP_TICKS);
}
}
GUIX Studio:
