Checking if 7-Segment display is common Anode or Cathode