Hi,
User determines pin index by invoking NU_GET_PININDEX macro on Nuvoton platform.
EX:
#define LEDR NU_GET_PININDEX(NU_PH, 0)
For your case,
#define LED_R NU_GET_PININDEX(NU_PH, 0) // PH.0
#define LED_Y NU_GET_PININDEX(NU_PH, 1) // PH.1
#define LED_G NU_GET_PININDEX(NU_PH, 2) // PH.2
BRs
Wayne
Ask GPIO Not working in Nuvoton M487