Hi,
You can use the Chip_GPIO_SetPinState function, for example:
void Board_LED_Set(uint8_t LEDNumber, bool On)
{
if (LEDNumber == 0) {
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 1, 12, (bool) !On);
}
else if (LEDNumber == 1) {
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 1, 11, (bool) !On);
}
}
Please check the following document:
How to create a new LPC project using LPCOpen and LPCXpresso
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------