SAMD21 Pro RF-Lora Digital Pin access in C

I feel like an idiot asking this, but:

How are digital pins accessed in C code in the arduino IDE?

#define TESTSWITCH D4

…yields ‘D4’ was not declared in this scope.

I’m modifying the RadioHead (Paul S’s) simple client and server example code (that works BTW), but I can’t seem to figure out how to access the pins on the board that are silk-screened D9, D4, D3, D2, D5??

It is just defined with a single number : e.g. D9 as 9, D4 as 4 etc

duh on my part…Thank you! I let myself get confused as to why the silkscreened analog pins could be referred to as A1, A2, etc but the digital pins could not :oops: