Whats wrong program. or flow chartThis is a big step back. Your flowchart doesn't match your code and neither is what you want.
Does it not do following things ?
while switch is closed , turn ON LED ) (check only one condition switch is closed again and again repeatedly and if true turn ON LED
while switch is open , turn OFF LED (check only one condition switch is open again and again repeatedly and if true turn of LED)
Your post #19 is very informative for me . What is next Exercise for me ?
Last edited: