I built a basic circuit sucessfully using a slotted disc sinking a red led and sourcing a green led from pin1 to check it was working.
I now want to add a counter on pin2. Tried simple b0 = b0 + 1 but it did not work. So I put an orange led on pin2 to check if it was going high when pin1 went high.
do if pin4 = 1 then high 1 elseif pin 4 = 0 then low 1 endif loop
do if pin 4 = 1 then high 1,2 elseif pin4 = 0 then low 1 endif loop This did not work. I tried changing the code by adding elseif pin4 = 1 then high 2 All leds on when loading the programme. Both red and green on permanently. How do I get output pin2 to go high when input pin4 goes high. Tony