serial port TX and digital in-out on pins 0 and 1 respectivly

Hi, In my current project I have run out of digital pins, I do however have pin 1(RX) free. I am using the serial function TX(pin 1) to drive a serial GLCD. So my question; can I use pin 0 as serial port tx, and assign pin 2 as digital in-out without having conflicts?
I am also using two more instances of newsoftserial on other pins.
I am using the arduino nano.

Thanks for any input.

and assign pin 2 as digital in-out without having conflicts?

I think you meant to say pin 1? And yes in your case if you are not using any serial.read commands in your sketch you are free to use pin 1 as you wish. Keep in mind that any circuitry you wire up to pin 1 may have to be disconnected when you wish to upload a new sketch to the board.

Lefty

Thanks, Yes sorry I did mean pin one, Im never gonna get use to counting staring at 0. I program with ISP so i should be OK with the programming.

Thanks, Yes sorry I did mean pin one, Im never gonna get use to counting staring at 0.

Then you are defiantly going to have problems using the C/C++ programming language. :smiley:

Good luck,
Lefty

I'm pretty sure you'll have to disable the RXEN bit, since page 203 of the datasheet says it overrides normal port behavior.

UCSRB &= ~_BV(RXEN);

but, you know, try it.