FLBF_5496
FLBF_5496

Registered on 3年前

Answer
1
Article
0
Follower
0

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

Another example

BRs
Wayne

Create
Post