Using tx and rx pins as output.

Someone mentioned in another thread you can use TX and RX as outputs/input if your not using them for serial. Is there some specific way of coding them to be used as such as I just get an upload error?

Is there some specific way of coding them to be used as such as I just get an upload error?

Nothing specific needs to be done to use pins 0 and 1 as output pins. Of course, you must disconnect whatever is connected to them in order to upload again, since in that process they are serving a different function.