Making on board LEDs work with LPC1837

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Making on board LEDs work with LPC1837

995件の閲覧回数
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.

ラベル(2)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

801件の閲覧回数
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 件の賞賛
返信

801件の閲覧回数
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 件の賞賛
返信