is there a way to disable one of the digital ports

i whant to run 6 LED’s on three outputs but then i have to disable one of the pins.
here is my code

int led1 = 13;
int led2 = 12;
int led3 = 10;

void setup(){
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
  pinMode(led3, OUTPUT);
  
}
void loop(){
  digitalWrite(led1,HIGH);
  digitalWrite(led2,LOW);
  digitalWrite(led3,LOW); 
  delay(500);

  digitalWrite(led1,LOW);
  digitalWrite(led2,LOW); 
  digitalWrite(led3,HIGH);
  delay(500);

  digitalWrite(led1,HIGH);
  digitalWrite(led2,HIGH);
  digitalWrite(led3,LOW);
  delay(500);

  digitalWrite(led1,LOW);
  digitalWrite(led2,HIGH);
  digitalWrite(led3,HIGH);
  delay(500);

}

Could you state that as a question, please?

-br

billroy:
Could you state that as a question, please?

-br

i want to disable one of my digital outputs

  digitalWrite(led1,LOW);
  digitalWrite(led2,LOW); //disable this in stead of having it low
  digitalWrite(led3,HIGH);

"How do I disable an output?"

Set its pinMode to INPUT.

-br

This thread intrigues me... why do you need to disable the pin?

What are you expecting to happen when you disable the pin/port?

Maybe have a look at charlie-plexing - http://www.instructables.com/id/CharliePlexed-LED-string-for-the-Arduino/ -

ingar195: i whant to run 6 LED's on three outputs but then i have to disable one of the pins.

Are you doing Charlieplexing Try this Library http://playground.arduino.cc/code/charlieplex