Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pin1 = 16
- pin2 = 5
- pin3 = 4
- pin4 = 0
- motorDelay = 1000
- [top]
- textbox Car_Back
- textbox Car_Forward
- textbox Car_Left
- textbox Car_Right
- button "Left", [CarLeft]
- button "Right", [CarRight]
- button "Forward", [CarForward]
- button "Back", [CarBackward]
- wait
- [CarBackwards]
- io(po,pin3,0)
- io(po,pin4,0)
- delay motorDelay
- io(po,pin3,1)
- io(po,pin4,1)
- delay motorDelay
- [CarForward]
- io(po,pin1,0)
- io(po,pin2,0)
- delay motorDelay
- io(po,pin1,1)
- io(po,pin2,1)
- delay motorDelay
- [CarLeft]
- io(po,pin2,0)
- io(po,pin3,0)
- io(po,pin4,0)
- delay motorDelay
- io(po,pin2,1)
- io(po,pin4,1)
- delay motorDelay
- [CarRight]
- io(po,pin1,0)
- io(po,pin3,0)
- io(po,pin4,0)
- delay motorDelay
- io(po,pin1,1)
- io(po,pin3,1)
- delay motorDelay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement