7 Segment off LEDs Problem

Wiring diagram?
Code?