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.

官网SDK1.4例程按键检测不到

Other Parts Discussed in Thread: CC2540

我用官网SDK1.4.0SimpleBLEPeripheral例程做试验。

预编译添加HAL_KEY=TRUE

然后,

static void simpleBLEPeripheral_HandleKeys( uint8 shift, uint8 keys )
{
uint8 SK_Keys = 0;

VOID shift; // Intentionally unreferenced parameter

if ( keys & HAL_KEY_SW_1 )
{
SK_Keys |= SK_KEY_LEFT;
NPI_PrintString("KEY1 ANXIA!!!!");
}

。。。。。。。。。。。。。。。。。。。。。。

结果按下左键什么也不打印。

串口已搞好,按复位键可以打印东西。

请问高手,如何解决?谢谢!