2067548_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2067548_en-US

2067548_en-US

LPC1549 blink darn you, blink!

I have the LPC1549 on its own board and I am trying to get familiar with MCUExpresso by using the periph_blinky example. It builds and flashes successfully. Since it is not on the development board, I need to reassign the LED pins. It is clear in the systick.c file where the LED pins are set:

Board_LED_Set(0, false);

Board_LED_Set(1, true);


However, I can't find where the pins are defined. Where do I find where pins "0" and "1" are defined? I need to change them to PIO0_22 and PIO0_23.

Thanks!

Re: LPC1549 blink darn you, blink!

Hi @DanielLongo 

You can find it in board.c

Harry_Zhang_0-1782879080472.png


The default pins "0" and "1" are 25 3

If you want to change them to PIO0_22 and PIO0_23.
You just need to change to
#define MAXLEDS 3
static const uint8_t ledpins[MAXLEDS] = {22, 23, 1};
static const uint8_t ledports[MAXLEDS] = {0, 0, 1};

Hope this will help you.

BR

Harry

标记 (1)
无评分
版本历史
最后更新:
星期四
更新人: