I think @UKHeliBob is asking out of curiosity or to create a learning moment.
Like where on the list A, B, C &c. would you find "check to see if this pin can be used as a digital input pin"?
For me that would have been the last thing I checked. Last because it would end the checking. Last because about 4 or 5 other things would have come before.
I blame whoever labeled the Arduino pins. How many ppl know out of the box that any analog pins can be used as digital pins?
Then the next thing we learn, when running out of pins, is that you can use analog pins. Yes, sometimes someone will say A0..A? (see, I can't even finish that thought) can be used as digital pins. Maybe mentioning on an UNO.
We go away thanking the stars that analog pins can be used as digital pins. Because that day will come.
And get bited sooner later when we go to use An where that is a strictly analog pin.
Same same for PWM capable pins. And why can servos be used on many pins, they do PWM, right? (I know, don't explain that, just sayin').
So there's a crap-ton of stuff that if you don't know now you know.
Of course it's all documented. Documentation seems to be a 20th century concept - now we more like poke around, look at examples, ask on fora kind and unkind, improvise, experiment, extrapolate and so forth, all at our own peril.
Maybe we find one page that has the short list of pins, what they can and cannot do listed and labeled and sorted by board type. More likely, such a page does not exist.
FWIW I would probably have moved to another pin, but gotta say that the bug might have kept me off track.
a7