input buttons

Adding some buttons for user input, which pins should be used? Can the analog pins be used as digital, or limited to the few digital pins?

Yes you can use the analogue pains as digital (except for A6 and A7 on the Nano), just set the required pinMode.

Great, thanks.

unrelated: So the opposite isn't possible then?

ghosttrain:
unrelated: So the opposite isn't possible then?

No, you can't use digital pins as analog pins.

You can use analog pin for button too, not only one pin to one button, you can have multi-button on one analog pin.

5 buttons

20 buttons