Quantcast
Channel: Zigbee 和 Thread
Viewing all articles
Browse latest Browse all 16985

帖子: RE: HalLedBlink问题

$
0
0

该函数的说明如下

void HalLedBlink (uint8 leds, uint8 numBlinks, uint8 percent, uint16 period) 

/***************************************************************************************************

* @fn HalLedBlink

* @brief Blink the leds

* @param leds - bit mask value of leds to be blinked

* numBlinks - number of blinks

* percent - the percentage in each period where the led will be on

* period - length of each cycle in milliseconds

* @return None

***************************************************************************************************/

您还需要在hal_board_cfg.h 文件内设置IO口,如下所示

/* 3 - Yellow */

#define LED3_BV BV(7)

#define LED3_SBIT P1_7

#define LED3_DDR P1DIR

#define LED3_POLARITY ACTIVE_HIGH


Viewing all articles
Browse latest Browse all 16985

Latest Images

Trending Articles