您好:
我在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!"); }