Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. pin1 = 16
  2. pin2 = 5
  3. pin3 = 4
  4. pin4 = 0
  5. motorDelay = 1000
  6. [top]
  7. textbox Car_Back
  8. textbox Car_Forward
  9. textbox Car_Left
  10. textbox Car_Right
  11. button "Left", [CarLeft]
  12. button "Right", [CarRight]
  13. button "Forward", [CarForward]
  14. button "Back", [CarBackward]
  15. wait
  16.  
  17. [CarBackwards]
  18. io(po,pin3,0)
  19. io(po,pin4,0)
  20. delay motorDelay
  21. io(po,pin3,1)
  22. io(po,pin4,1)
  23. delay motorDelay
  24.  
  25. [CarForward]
  26. io(po,pin1,0)
  27. io(po,pin2,0)
  28. delay motorDelay
  29. io(po,pin1,1)
  30. io(po,pin2,1)
  31. delay motorDelay
  32.  
  33. [CarLeft]
  34. io(po,pin2,0)
  35. io(po,pin3,0)
  36. io(po,pin4,0)
  37. delay motorDelay
  38. io(po,pin2,1)
  39. io(po,pin4,1)
  40. delay motorDelay
  41.  
  42. [CarRight]
  43. io(po,pin1,0)
  44. io(po,pin3,0)
  45. io(po,pin4,0)
  46. delay motorDelay
  47. io(po,pin1,1)
  48. io(po,pin3,1)
  49. delay motorDelay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement