blob: 3c3743972d938365b27ab67d85cf1bea4be24c9e (
plain)
1
2
3
4
5
6
7
8
9
10
|
def main():
DefineSensors(TOUCH,None,None,None)
OnFwd(OUT_AC, 75)
while True:
if SensorVal(1) == 1:
OnRev(OUT_AC, 75); Wait(300)
OnFwd(OUT_A, 75); Wait(300)
OnFwd(OUT_AC, 75)
|