How to turn on RGB LED on LPC11C24 board???

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

How to turn on RGB LED on LPC11C24 board???

1,316 次查看
ajay_6094
Contributor I

hiteshviradiyaMandar,

I am new to LPC MCUs & MCUXpresso IDE tool. I have LPC11C24 CMSIS-DAP board. As per a document, PIO0_7, PIO0_8 and PIO0_9 pins are connected to RGB Led on the board. But I am able to turn on only Red Led i.e. PIO0_7.

How to turn Green and blue leds of RGB LED? My logic for turning on RGB led is as following:

Chip_GPIO_SetPinDIROutput(LPC_GPIO, 0, 7);
Chip_GPIO_SetPinDIROutput(LPC_GPIO, 0, 8);
Chip_GPIO_SetPinDIROutput(LPC_GPIO, 0, 9);

Chip_GPIO_SetPinState(LPC_GPIO, 0, 7, 1);
Chip_GPIO_SetPinState(LPC_GPIO, 0, 8, 1);
Chip_GPIO_SetPinState(LPC_GPIO, 0, 9, 1);

Thank you.

Ajay Kumar

0 项奖励
回复
0 回复数