Controlling a seven segment display on a Raspberry Pi using seven GPIOs