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.

ZStack中LED移植问题

我想把LED灯移植到P2口上,但是我改成如下设置之后,LED灯不亮了。
经过查找发现P2.0和按键引脚相冲突,于是就把HAL_KEY设置成FALSE,设置完成之后P2.0的灯可以亮了。
但是接到P2.3和P2.4的灯仍然不亮。不知道什么原因,望各位指点一下。
 
#define LED1_BV           BV(0)
#define LED1_SBIT         P2_0//P1_0
#define LED1_DDR          P2DIR//P1DIR
#define LED1_POLARITY     ACTIVE_HIGH

//#if defined (HAL_BOARD_CC2530EB_REV17)
  /* 2 - Red */
  #define LED2_BV           BV(3)
  #define LED2_SBIT         P2_3//P1_1
  #define LED2_DDR          P2DIR//P1DIR
  #define LED2_POLARITY     ACTIVE_HIGH

  /* 3 - Yellow */
  #define LED3_BV           BV(4)
  #define LED3_SBIT         P2_4
  #define LED3_DDR          P2DIR//P1DIR
  #define LED3_POLARITY     ACTIVE_HIGH