Wednesday, November 21, 2007

One switch and the waituntil command

Look here for the reason for these Logo posts.

Setup: Use one switch connected to port 1 and one motor connected to port A. Download this program:
to go
loop [start]
end

to start
waituntil [switch1]
aon
waituntil [not switch1]
aoff
end


The waituntil command functions sequentially, just like other simple commands.

No comments :