Gramps
Senior Member
Greetings from Ft. Myers Florida,
We're lighting 8 LEDs on pins B.7 through B.0.
Using input pin C.1 as a momentary contact switch.
Pin B.0 will not light, Can a pin be burned out?
Here's the code:
Thanks, Gramps
We're lighting 8 LEDs on pins B.7 through B.0.
Using input pin C.1 as a momentary contact switch.
Pin B.0 will not light, Can a pin be burned out?
Here's the code:
Thanks, Gramps
Code:
main:
let dirsA = 16
let dirsB = 0
let dirsC = 0
Cell_7_3:
high B.7
if pinC.0=1 then
goto Cell_7_5
end if
goto Cell_7_3
Cell_7_5:
pause 1000
low B.7
Cell_7_7:
high B.6
if pinC.0=1 then
goto Cell_7_9
end if
goto Cell_7_7
Cell_7_9:
pause 1000
low B.6
Cell_7_11:
high B.5
if pinC.0=1 then
goto Cell_7_13
end if
goto Cell_7_11
Cell_7_13:
pause 1000
low B.5
Cell_7_16:
high B.4
if pinC.0=1 then
goto Cell_7_18
end if
goto Cell_7_16
Cell_7_18:
pause 1000
low B.4
Cell_7_20:
high B.3
if pinC.0=1 then
goto Cell_7_22
end if
goto Cell_7_20
Cell_7_22:
pause 1000
low B.3
Cell_7_24:
high B.2
if pinC.0=1 then
goto Cell_7_26
end if
goto Cell_7_24
Cell_7_26:
pause 1000
low B.2
Cell_10_4:
high B.1
if pinC.0=1 then
goto Cell_10_6
end if
goto Cell_10_4
Cell_10_6:
pause 1000
low B.1
Cell_10_8:
high B.0
if pinC.0=1 then
goto Cell_10_10
end if
goto Cell_10_8
Cell_10_10:
pause 1000
low B.0
goto Cell_7_3:
Last edited by a moderator: