Hi, Ozzie
This is a pure logic question ... but your problem is not clearly enough explained : no " cooked " solution available with so little detail given ...
so, you could have a look here :
http://karnaugh.shuriksoft.com/
this would help you to write
Led1 = Button1 + ? ....
Led2 = Button2 + ? ...
Led3 = Button 3 ...
Now you also can try to do it the " hard way " using some SELECT CASE statement ... lazy boy solution !!!
looks some school homework , no ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks