您好:
我在syscfg中设置了串口打印,如下图,但是在main()函数里调用Display_print0(display, 0, 0, "Button:Long Pressed");接口时失败,打印不出信息,请问应该怎么解决呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好:
我在syscfg中设置了串口打印,如下图,但是在main()函数里调用Display_print0(display, 0, 0, "Button:Long Pressed");接口时失败,打印不出信息,请问应该怎么解决呢?
display例程包含了串口和LCD,不只是LCD
/* * Open both an available LCD display and an UART display. * Whether the open call is successful depends on what is present in the * Display_config[] array of the driver configuration file. */ Display_Handle hLcd = Display_open(Display_Type_LCD, ¶ms); Display_Handle hSerial = Display_open(Display_Type_UART, ¶ms); if (hSerial == NULL && hLcd == NULL) { /* Failed to open a display */ while (1) {} } /* Check if the selected Display type was found and successfully opened */ if (hSerial) { Display_printf(hSerial, 0, 0, "Hello Serial!"); }
这是另一个问题了,以后有新问题可以开一个新帖,我看到你已经开了一个新帖:https://e2echina.ti.com/support/wireless-connectivity/wifi/f/wi-fi-forum/208570/launchxl-cc3235sf-debug 可以在新贴中继续询问
由于你的初始问题以得到解决,请不要忘记将此贴标记为问题已解决,以便其他人查找