Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- init:
- let dirsb = 255
- let pinsb = pin1
- main:
- if pin1 = 1 then
- goto wall
- else
- low 1
- low 2
- low 3
- low 4
- low 1
- high 2
- low 4
- high 3
- endif
- goto main
- wall:
- '' reset values
- low 1
- low 2
- low 3
- low 4
- '' go backwards for 2 secs
- high 1
- low 2
- high 4
- low 3
- wait 2
- '' reset
- low 1
- low 2
- low 3
- low 4
- '' spin for ?3? secs
- low 1
- high 2
- low 3
- high 4
- wait 3
- '' restart program
- goto main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement