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)
評価なし
バージョン履歴
最終更新日:
‎07-02-2026 03:27 AM
更新者: