dancingapples:
i've tried modifying it like above however, it keeps segments d-g lit but doesnt change
But does your button cause the Arduino input to go high or low during a button press? Also, can you just test if the button was debounced and ignore the segment LEDs for now? Let's fix one thing at a time.