Hi i am trying to create code to turn 3 leds on and off using 3 switches. (1 switch per LED)
the theory is to have the code watch out for the inputs and act accordingly (duel functionality of switches). I have looked at "Nigel's tutorial 2.2" (). and have found code which gives an on/off function to one switch.
My problem is when i come to modify it to use as i intend it i can only use the first switch and not the others, almost as if the programme is stuck just looking for the first input and not the other 2.
The theory should be simple... but I am lost again, why doesn't the code exit the subroutines and test the other switches.
the theory is to have the code watch out for the inputs and act accordingly (duel functionality of switches). I have looked at "Nigel's tutorial 2.2" (). and have found code which gives an on/off function to one switch.
My problem is when i come to modify it to use as i intend it i can only use the first switch and not the others, almost as if the programme is stuck just looking for the first input and not the other 2.
The theory should be simple... but I am lost again, why doesn't the code exit the subroutines and test the other switches.