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.

Compiler/LAUNCHXL-CC2650: How to enable DIO2, connected to a different board's LED

Part Number: LAUNCHXL-CC2650
Other Parts Discussed in Thread: CC2650

Tool/software: TI C/C++ Compiler

Hello,

I am using cc2650, and I want to access and enable the LED which is connected to DI2/Pin8 of cc2650. I want to integrate it with simple peripheral example.

PIN_State  hStateHui;
#define HUI_LED_C     PIN_ID(8)

static PIN_Handle ledPinHandle;
static PIN_State ledPinState;

PIN_Config ledPinTable[] = {
HUI_LED_C | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,
PIN_TERMINATE
};

/* Open LED pins */
ledPinHandle = PIN_open(&ledPinState, ledPinTable);

//ledPinValue = PIN_getOutputValue(HUI_LED_C);
 PIN_setOutputValue(ledPinHandle, HUI_LED_C, 1);

Please let me know if I need to add anything, because it doesn't seem to work with these changes.

Thanks in advance,

Rathna

Here are the code I added