LPCXPRESSO 1549 LED

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

LPCXPRESSO 1549 LED

1,097 次查看
svip
Contributor I

Hi to all, i am beginner  with lpcxpresso boards and i tried to turn on one of the three leds on the board without writing a code by myself. 

teorecally i suppose to perfoms the ollowing operation

1) createv a project for the lpcspresso 1549

2) set the gpio bank involved the leds as output

3) provide the rigth values to the gpio banks in order to turn on the led

i found these two functions on other template

Chip_GPIO_SetPortDIROutput(LPC_GPIO, 0, PORT_MASK);


Chip_GPIO_SetPortMask(LPC_GPIO, 0, ~PORT_MASK);

 i suppose that i need to replace the values LPC_GPIO, 0 with the values relative to the led.

can someone help me?

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

859 次查看
soledad
NXP Employee
NXP Employee

Hello luca di nunzio,

Please check the following document  How to create a new LPC project using LPCOpen and LPCXpresso 

This document describes how to create a new LPC project using LPCOpen v2.xx, LPCXpresso v8.2.2 and LPC11U24 LPCXpresso board. In addition describes how to create 2 simple example codes.

I hope this helps!!


Have a great day,
Sol

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

0 项奖励
回复