Advertisement
masaakiNakamura

Jam Car Demo 20160612

Jun 12th, 2016
3,213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 5 'Jam Car Demo- Turn + Line + Line Trace
  2. 10 wait 120
  3. 12 if btn() = 0 goto 1000
  4. 15 out #17
  5. 20 for i=1 to 2
  6. 30 out 1,0
  7. 40 wait 30
  8. 50 out 1,1
  9. 60 wait 30
  10. 70 next
  11. 80 out 2,0
  12. 85 n=23
  13. 90 for i=1 to 3:out 1,0:wait n:out 1,1:wait n:next
  14. 95 out 2,1
  15. 100 for i=1 to 2:
  16. 110 out 1,0:wait 30: out 1,1: wait 30
  17. 120 next
  18. 140 out 2,0
  19. 150 for i=1 to 3:out 1,0: wait n: out 1,1: wait n: next
  20. 200 out 0
  21. 300 end
  22. 1000 L=in(1)
  23. 1010 R=in(4)
  24. 1020 if L=0 and R=0 then out 2,1: out 3,0
  25. 1030 if L=1 and R=0 then out 2,1: out 3,0
  26. 1040 if L=1 and R=1 then out 2,0: out 3,1
  27. 1050 if L=1 and R = 1 then out 2,0: out 3,1
  28. 1060 pwm 5,500
  29. 1100 goto 1000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement