Can an someone show me how to write a program which:
(i) Has 4 inputs of 5V on 4 different pins(Let's say PORTA),with switches on all of them.
(ii)The input control's 4 outputs(Let's say PORTB)
(ii)the output toggle each time a 5V is connected.(press switch once=1,press switch 2nd time=0)
(i) Has 4 inputs of 5V on 4 different pins(Let's say PORTA),with switches on all of them.
(ii)The input control's 4 outputs(Let's say PORTB)
(ii)the output toggle each time a 5V is connected.(press switch once=1,press switch 2nd time=0)