when a pin low its essentially connecting to ground, so the red led would go from arduino to ground, the green would go from +5 to arduino (dont forget your current limiting resistors)
when a pin low its essentially connecting to ground, so the red led would go from arduino to ground, the green would go from +5 to arduino (dont forget your current limiting resistors)