Are there board-independent functions to check pin capabilities at compile time? I.e.
- Can the pin be used as output, as in
- Does the pin support PWM, as in
- Does the pin support ADC, as in
- Does the pin support interrupts, as in
I'm looking for functions/macros like e.g.
isDigitalOutput(pin) which would return false for input-only pins such as A6 and A7 on a 328P, but true on a Mega where those pins are input/output.