Hi All
Was just having a play this morning (trying to stick pin into scratchpad)
and ended in doing the following not what I was after but thourght
I wonder if so I did and found out it toggles the pins nicely
would look good on an LED hat
regards
john
Was just having a play this morning (trying to stick pin into scratchpad)
and ended in doing the following not what I was after but thourght
I wonder if so I did and found out it toggles the pins nicely
Code:
dirsB=%11111111
pin:
pinsB=%00111100
main:
b0=0
do
pinsB= dirsB-pinsB
pause 1000
inc b0
loop until b0=9
inc b1
if b1=1 then
pinsB=%10101010
goto main
elseif b1=2 then
pinsB=%01010101
goto main
elseif b1=3 then
pinsB=%11001100
goto main
elseif b1=4 then
pinsB=%11000011
goto main
elseif b1=5 then
b1=0
goto pin
endif
regards
john
Last edited: