Toggling pairs of leds

Hi.

I wonder if someone could point me in the right direction for this.

I have about 30 leds arranged in pairs of two. When one of the pair is turned on, the other should be turned off.

I think I have a couple of options in terms of general approach both of which would need an external supply for the leds and appropriate resistors

Use a nano and Multiplex using 4 * 74HC595 giving me control of upto 32 leds, turning each of the pair off or on programmatically.

Use a mega with transistors or mosfets with each of the 30 leds being controlled by its own digital pin.

However, I suspect that there must be an approach from the electronics side where I can use the same digital pin to switch the state of both of the pair of leds, Unfortunately, I just cant see it

Can anyone offer any advice or pointers as to how I can do this.

Thanks

60 LEDs? Mega2560 has 70 outputs.
Wire up each LED with its own resistor.
Make up two arrays, drive them high & low in pairs

for (x=0; x<30; x=x+1){
digitalWrite (array1[x], HIGH);
digitalWrite (array2[x], LOW);
delay(250);
}

for (x=0; x<30; x=x+1){
digitalWrite (array2[x], HIGH);
digitalWrite (array1[x], LOW);
delay(250);
}

You can control two LEDs from one port pin if they're wired this way:

Sample code using pin three:

void setup() 
{
    pinMode( 3, OUTPUT );
    
}

void loop() 
{
    digitalWrite( 3, LOW );
    delay(250);
    digitalWrite( 3, HIGH );
    delay(250);
    
}

When the pin is HiZ (as when it's an input on power-up), both LEDs will be on. When the Arduino sets the pin to output, only one will be on. There's no way to turn the LEDs both off though...

Or use a MAX7219.
Leo..