All working except for led7segWriteDigit()