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.

control Led with button pin

Greetings Friends,

Sorry for re-posting and creating a new thread for this issue,

im using a cc2650DK, I tried contolling the led with  a button, like it was given on 6.3.1 on the developers guide of cc2650DK,

but i get this error. it says 

Description Resource Path Location Type
#20 identifier "LED_value" is undefined simpleBLEPeripheral.c /SimpleBLEPeripheral/Application line 548 C/C++ Problem

This is the piece of code on which the error occurs

if (events & SBP_BTN_EVT)
{
events &= ~SBP_BTN_EVT; //clear event
//toggle LED1
if (LED_value)
{
PIN_setOutputValue(hSbpPins, Board_LED1 , LED_value--);
}
else
{
PIN_setOutputValue(hSbpPins, Board_LED1, LED_value++);
}
}

this code snippet is inside SimpleBLEPeripheral_taskFxn()

my question is do i have to explicitly define the LED_value?

could you please help me resolve this issue.