week4

Data

 

022003

m With Jung Eun I did lab assignment together. After we solved the step#1, we became to want to turn off the number 20th's LED in the curcuit after the first loop run. So we changed the code slightly and got the successful result. Unfortunately I couldn't record it with photo of that result. But I could save the code.

 

Sub main()
dim nextLightVar as byte

call delay(0.5) ' start program with a half-second delay

do
for nextLightVar = 13 to 20
call putPin(nextLightVar, 1)
call putPin((nextLightVar - 1), 0)
if nextLightVar=13 then
call putPin(20,0)
end if

call delay(1.0)
next
loop
end sub

 

 

 

 

Journal Index