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.

CCS: Display.h

Other Parts Discussed in Thread: CC1352R, BOOSTXL-SHARP128

Tool/software: Code Composer Studio

Hello, 

I am faily new to SimpleLink and the TI launchpads. I have gone through the academiy for the CC1352R and tried to use the Display.h library to modify the empty.c in the empty example. However, nothing is displayed. After debugging to find out if the Display_Handle defind is NULL, I found out it is. Using the Display_Type_UART I get all working, not not on the LCD. Ca someone please tell me what I am missing?

thanks in advance!!!

#include <ti/drivers/GPIO.h>
#include <ti/display/Display.h>
#include <ti/display/DisplayUart.h>
#include <ti/display/DisplayExt.h>
#include <ti/display/AnsiColor.h>

/* Board Header file */
#include "Board.h"


/*
* ======== mainThread ========
*/
void *mainThread(void *arg0)
{
/* 1 second delay */
uint32_t time = 1;

/* Call driver init functions */
GPIO_init();
Display_init();

/* Open Display Driver */

Display_Params params;
Display_Params_init(&params);
//params.lineClearMode = DISPLAY_CLEAR_BOTH;

/* Open available LCD Display*/
Display_Handle hLcd;
hLcd = Display_open(Display_Type_LCD, &params);
if (hLcd==NULL)
{

hLcd = Display_open(Display_Type_UART, &params);
Display_printf(hLcd, 1, 0, "Hallo aus Sportident");
sleep(4);
}

/* Configure the LED pin */
GPIO_setConfig(Board_GPIO_LED0, GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);
GPIO_setConfig(Board_GPIO_LED1, GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);

/* Turn on user LED */
GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_OFF);
GPIO_write(Board_GPIO_LED1, Board_GPIO_LED_ON);

while (1) {


sleep(1);

sleep(time);
GPIO_toggle(Board_GPIO_LED0);
Display_printf(hLcd, 4, 0, "Red LED toggled");
Display_clear(hLcd);
GPIO_toggle(Board_GPIO_LED1);
Display_printf(hLcd, 4, 0, "Green LED toggled");
Display_clear(hLcd);


}
}