Weird led display that uses pins as both ground and as power

So, I have this strange led display that I scavenged from an old radio.
It has seven pins, each of which acts as both a positive and a ground. For example, whenever I put power on the first pin and ground on the second pin, it lights up the top segment of one of the 7 segment displays.
But then, I need to use the first pin as ground and the second pin as positive (aka, swapped roles) to get a different segment on one of the 7-segs.
My question is: how do I program my arduino uno to switch an output pin to ground, and vice versa? Thanks ahead of time.

digitalWrite(pin, LOW);

Do not attempt to have the pin "sink" or source more than about 20 mA, and be sure use current limiting resistors for the display segments.

is that what low does? :smile: Im such a dummy. Ok, thanks!

(Ominous music plays) I don't have enough resisters :exploding_head:

digitalWrite(pin, LOW) is essentially "ground" and digitalWrite (pin, HIGH) will be about 5V

I actually have a new question how do I use four resistors to separately power seven pins

You put them together for one night in the dark and next morning you check if they have any babies..

1 Like

that's actually crazy Ill try that thanks a bunch

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.