I got a new Leonardo, and have set up a simple button test (button with a 10k ohm resistor, as described in the Button tutorial). Works great on Pin 0, but when I move it to Pin 14 (A0 on the board), it does not work - pushing the button does nothing, and the data coming back from the pin seems either all 0 or random (if you move it to another digital pin such as 2, it works great). Here is the code I used. Am I missing something?
//change buttonPin to 14 and move the input to pin A0, and the code stops working as expected.
int buttonPin = 0;
int s = digitalRead(buttonPin);