Advertisement
Lonely_Wanderer

solution.6-7

Feb 15th, 2023
905
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. for i in range(4):
  2.     while ev3.buttons.pressed() != [Button.CENTER]:
  3.         pass
  4.     angle = MotLock.angle()
  5.     if 0 < angle < 90:
  6.         your_code.append(1)
  7.     elif 90 < angle < 180:
  8.         your_code.append(2)
  9.     elif 180 < angle < 270:
  10.         your_code.append(3)
  11.     elif 270 < angle < 360:
  12.         your_code.append(4)
  13.     wait(300)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement