I'd forgotten that web page of mine ! No ... you've got to be careful, a resistor ladder is ok for keypress where one switch is being pressed at a time, but this situation is different as you can have 4 switches (LDRs) pressed at any time.
What I was describing above regarding series LDRs might work for 4 LDRs, at least in theory !:
<code><pre><font size=2 face='Courier'>
Supply ---------+-----
|
__|__
|LDR A|
|_____|
|
__|__
|LDR B|
|_____|
|
__|__
|LDR C|
|_____|
|
__|__
|LDR D|
|_____|
|
+---------->ADC
___|____
|Resistor|
|________|
|
GND----------+-------
</font></pre></code>
The trick is choosing the on-off values of the LDRs correctly.
<b> First look at an ideal case ... </b>
Imagine a 4-bit binary number, where each bit represents one of the LDR values: Bit3:Bit2:Bit1:Bit0
So:
Bit0 (0 or 1) has an overall value of 0 or 1
Bit1 (0 or 1) has an overall value of 0 or 2
Bit2 (0 or 1) has an overall value of 0 or 4
Bit3 has an ovarall value of 0 or 8
So if the LDR resistances varied 0 to 1K, 0 to 2K, 0 to 4K, 0 to 8K, then the overall resistance would vary from 0 to 16K.
And with a sutiable series resistor to ground would give unique ADC values for each combination of LDR readings.
<b> In reality ... </b>
You would have to carefully adjust the light to each sensor to acheive the on-off resistances. Probably not easy.
The 'on' resistance of the LDR won't be 0. Would need to account for this in the maths. Haven't got my head round this bit.
As Beaniebots pointed out a while ago, the brightness from LEDs fades over time.
Despite these points, IF this could be made to work then the circuit is very easy.