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.
do
if pin4 = 1 then high 1
elseif pin 4 = 0 then low 1
endif
loop
I now want to add a counter on pin2. Tried simple b0 = b0 + 1 but it did not...