I said microcontroller because the same thing can be done with picaxe and arduino
There are 2 inputs (on the top) and 4 outputs (the LEDs)
The programming is like this:
On the left there are 4 4s each 4 is for one condition of the inputs..like this
1: if both inputs are high
2: if the first input is high
3: if the second input is high
4: else (if both are low)
After that set the last source(programming) high (the one on the left bottom corner)
And then off
So if you want the LEDs to turn on like
this 1010 if both inputs was high
And 0101 if both was low
You have to set the sources like this
1
0
1
0
And ignore the next 8 sources
to the last 4
0
1
0
1
And then programme
After that turn the inputs on the top on and off to see the results
Set your programming and the previous programme will be cleared
I created this circuit completely with my own mind (it's Not Copy)
Made In Kurdistan