Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range(4):
- while ev3.buttons.pressed() != [Button.CENTER]:
- pass
- angle = MotLock.angle()
- if 0 < angle < 90:
- your_code.append(1)
- elif 90 < angle < 180:
- your_code.append(2)
- elif 180 < angle < 270:
- your_code.append(3)
- elif 270 < angle < 360:
- your_code.append(4)
- wait(300)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement