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!
Hi @DanielLongo
You can find it in board.c
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