Due digitalWrite pin mapping

How is the specified pin value in the digitalWrite() function mapped to a Due header and to a pin of that header.?

For example, if I use digitalWrite(7, high), which header and which pin of that header goes high? Also are there compiler constants that should be used. Like, say "PIN_7," or "LED_BUILTIN?"

I'm looking at SAM3X-Arduino Pin Mapping, but it doesn't help me understand the digitalWrite pin mapping.

The numbers are silk screened right on the board.

The pin mapping definitions are all done in the files of the variants folder:

sthudium:
Like, say "PIN_7,"

No, just use the number 7.

sthudium:
or "LED_BUILTIN?"

Yes, there are some convenience macros/variables defined in variant.h, one of which is LED_BUILTIN.