Wednesday, November 21, 2007

One switch and the if 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 [spin]
end

to spin
if switch1
[athatway]
if not switch1
[athisway]
aon
end

No comments :