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