Steve, wonderful examples, I think th OP may have a few questions for you, especially in the last with port indexing. But why doesn't his work after he moved the IF into the switchloop section? BTW, he will still have problems with button press being 1 for a zillion loop iterations, don't ya think?
@Brian, if you press the switch repeatedly, will that make the other LED's light? If so, does it seem to be random as to which will light?
Bookmarks