Making on board LEDs work with LPC1837

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Making on board LEDs work with LPC1837

498 Views
gvk51
Contributor III

Hi Folks,

 

LEDs do not work with the examples source code shared by NXP, lpcopen_2_18_lpcxpresso_nxp_lpcxpresso_1837

 

on board we have 3 LEDs

Red - Power indicator

Yellow & Blue  - (user configurable), these are connected to GPIO1[11] & GPIO1[12], do the following modifications in the lpc_board_nxp_lpcxpresso_1837/src/board.c file

 

//remove this line

-static const io_port_t gpioLEDBits[] = {{3, 5}, {0, 7}, {3, 7}};

//add this line

+static const io_port_t gpioLEDBits[] = {{3, 5}, {1, 11}, {1, 12}};

 

use the MACROS LEDS_LED1 & LEDS_LED2 to make then turn ON/OFF using the api Board_LED_Set(LEDS_LED2, 1);

 

Thanks & Regards,

Vamshi G.

Labels (2)
Tags (1)
0 Kudos
2 Replies

304 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Vamshi,

I've got a LCP1857 board now, then I'll replicate the issue.

And I'm going to inform you ASAP if I figure it out.
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

304 Views
gvk51
Contributor III

Hi Jeremyzhou,

I shared my observation on LPC1837, Yeah please check this on your board and update me, I will be following it.

0 Kudos