Before I answer that, how do you define allele? What you call a gene is what I think most would call a DNA Sequence
This is off topic, DNA is hardly binary, look into epigenetics, there may be the on/off switch but if it is on, there is basically a dial to control how much is expressed.