Serial Comms with Pins 1 and 2 probs

Hi All,

Newbie here, I’m trying to make a stopwatch using a seven segment display and two push buttons.

I’ve got the seven segment display working and I’ve got the buttons working.

I’m using all 14 Digital pins (12 for the seven segment and 2 for the buttons). As the buttons are connected to pins 0 and 1 I’m wondering if they have any influence on serial communications

I ask this as adding the line:

Serial.begin(9600);

Stops the buttons from working. Removing that line makes the buttons work again.

How do I add serial communications and use all 14 pins at the same time?

Use 2 of the analog pins instead for the buttons. A0 to A5 are digital pins D14 to D19.

Thank you!