In Arduino nano every seems to be changed pinouts of PIN_A7 and PIN_A6 in ATMEGA328 compability mode. A7 works as A6 and vice versa.