Looks like A6 and A7 aren't supported as digital I/O pins. The "eightanaloginputs' variant changes "NUM_ANALOG_INPUTS" to 8 but doesn't change "NUM_DIGITAL_PINS" to 22. Even if it did, the arrays that match pin numbers to ports don't have entries for those two pins.