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/CC2530: Blink led when key press in CC2530

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK

Tool/software: TI C/C++ Compiler

Hi

I am use generic_app in z-stack 3.0.1 to create sample app. I want set led1 on when press key1. I put 

if ( keys & HAL_KEY_SW_6 )
{
HalLedSet ( HAL_LED_1, HAL_LED_MODE_ON );
}

in function OnBoard_KeyCallback ( uint8 keys, uint8 state ).

But i not work. After I try put this code in to

 zclGenericApp_HandleKeys( byte shift, byte keys )

, but it still don't work. 

So what is problem ?

Thanks.