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

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

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

1,012 Views
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 Kudos
Reply
0 Replies