AnsweredAssumed Answered

IMXRT1050-EVKB LCD+USB

Question asked by Eliezer Oliveira on Dec 5, 2018
Latest reply on Dec 6, 2018 by Eliezer Oliveira

Hello, in continuity to my previous question: https://community.nxp.com/thread/490615, I am posting my code to see if anyone can help me.
Note that in order to test I commented the while (1) {} that calls the screen initialization and I made a new loop to run the USB.

To test if the monitor is working, just comment the USB loop and uncomment the LCD loop.

I did so to test.

 

 

//loop USB Host (J9 to IMXRT1050-EVKB)

USB_HostApplicationInit();
while(1){
USB_HostTaskFn(g_HostHandle);
USB_HostMsdTask(&g_MsdFatfsInstance);
}

 

//loop LCD

/* initLed();
gpio_pin_config_t led_config = {kGPIO_DigitalOutput, 0, kGPIO_NoIntmode};
GPIO_PinInit(EXAMPLE_LED_GPIO, EXAMPLE_LED_GPIO_PIN, &led_config);
GPIO_PinWrite(EXAMPLE_LED_GPIO, EXAMPLE_LED_GPIO_PIN, 1U);

GUI_Init();
CreateMY_LCD();
WM_Exec();
while (1){
if (BOARD_Touch_Poll()){
#ifdef GUI_BUFFERS
GUI_MULTIBUF_Begin();
#endif
GUI_Exec();
#ifdef GUI_BUFFERS
GUI_MULTIBUF_End();
#endif
}
}*/

Attachments

Outcomes