binary code generator for input in a 7 segment display