Use mask argument in seven-segment driver