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...

From hardware/arduino/avr/variants/leonardo/pins_arduino.h:

// 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};

pert:
From hardware/arduino/avr/variants/leonardo/pins_arduino.h:

// 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.

I would suggest using GitHub - nRF24/RF24: OSI Layer 2 driver for nRF24L01 on Arduino & Raspberry Pi/Linux Devices

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

RF24 radio(A1, A2);

void setup() {
  radio.begin();
}
void loop() {}
Der Sketch verwendet 1.938 Bytes (6%) des Programmspeicherplatzes. Das Maximum sind 30.720 Bytes.
Globale Variablen verwenden 28 Bytes (1%) des dynamischen Speichers, 2.020 Bytes für lokale Variablen verbleiben. Das Maximum sind 2.048 Bytes.