Atmega328P additional pins

Hi, I have got a more or less big problem - I'd like to use an atmega328P in my project, in which i have got a 6-digit-7segment multiplexed ( = 14pins), and now need to add three buttons + a speaker + DS1307 RTC. Can i somehow use the A0-A3 pins as digital outputs?

//: Problem has just solved itself.. sorry :)

M3lvi1N: Hi, I have got a more or less big problem - I'd like to use an atmega328P in my project, in which i have got a 6-digit-7segment multiplexed ( = 14pins), and now need to add three buttons + a speaker + DS1307 RTC. Can i somehow use the A0-A3 pins as digital outputs?

Yes, A0-A5 work perfectly as digital I/O pins.

That will be D14 up to D16 as digital pins

I prefer to use 'A0' instead of number '14'. However, they are the same.

pinMode( A0, OUTPUT);
pinMode( A1, INPUT_PULLUP);

digitalWrite( A0, LOW);
digitalRead( A1);