Analog pin for button matrix

I'm using a nano BLE
I would like to use analog input for my matrix button.
I've a problem to declare pin number, how can I make difference between A7 and D7.
The columns are D13 D7 A2 A3 A4
The rows are A5 A6 A7 D9 D8
If I try

byte cols = {D13,D7,A2,A3,A4};
byte rows = {A5,A6,A7,D9,D8};

I've declarations error

error: 'D7' was not declared in this scope

Use A5, A6 but drop the D from D7 D9 to 7 and 9.
You only need the A for the analog pins, not D for the digital pins.

Tom... :slight_smile:

It works perfectly tanks you