seven-segment: code cleanup & const adjustment