It’s not as simple as you’d think, at least in the Arduino ... output into the display’s common connection. The difference between the two pins is 1.5 volts, turning the segment on.
[Lewis] has just the thing for that: a big expandable 7-segment display. The build is modular ... and the project can be built using an Arduino Nano or an ESP8266 for control.