changed way 7-segment pins are declared and used