Arduino Leonardo - How to map the analog pins

How does one use the analogue pins on the leonardo as digital only? I know in Uno one can use 14, 15, etc but these are reserved for the ICSP pins on the leonardo. Any way to acess them?

I have a library that needs a number to be specified for the pin rather than a number/letter such as A5.

Thanks

"A5" is a number...

``````// Mapping of analog pins as digital I/O
// A6-A11 share with digital pins
static const uint8_t A0 = 18;
static const uint8_t A1 = 19;
static const uint8_t A2 = 20;
static const uint8_t A3 = 21;
static const uint8_t A4 = 22;
static const uint8_t A5 = 23;
static const uint8_t A6 = 24; // D4
static const uint8_t A7 = 25; // D6
static const uint8_t A8 = 26; // D8
static const uint8_t A9 = 27; // D9
static const uint8_t A10 = 28; // D10
static const uint8_t A11 = 29; // D12
``````

"A5" is a number

To clarify (now that I'm sitting at a real keyboard), the "A5" values are defined as numeric constants, and can be used anywhere you'd use an explicit number, for example:

``````byte mydigitalpins[] = {1, 2, 13, A0, A5};
``````
``````// Mapping of analog pins as digital I/O
``````

// A6-A11 share with digital pins
static const uint8_t A0 = 18;
static const uint8_t A1 = 19;
static const uint8_t A2 = 20;
static const uint8_t A3 = 21;
static const uint8_t A4 = 22;
static const uint8_t A5 = 23;
static const uint8_t A6 = 24; // D4
static const uint8_t A7 = 25; // D6
static const uint8_t A8 = 26; // D8
static const uint8_t A9 = 27; // D9
static const uint8_t A10 = 28; // D10
static const uint8_t A11 = 29; // D12

Ah, Thanks!

westfw:
To clarify (now that I'm sitting at a real keyboard), the "A5" values are defined as numeric constants, and can be used anywhere you'd use an explicit number, for example:

``````byte mydigitalpins[] = {1, 2, 13, A0, A5};
``````

It might very well be, but maniacbug nRF24L01 library doesnt work with any of the A* pins for some reason

casemod:
It might very well be, but maniacbug nRF24L01 library doesnt work with any of the A* pins for some reason

But because using the original manicbug library should not be used (it has errors), that is hardly a problem.

``````#include <SPI.h>
#include <RF24.h>

``````Der Sketch verwendet 1.938 Bytes (6%) des Programmspeicherplatzes. Das Maximum sind 30.720 Bytes.