Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- flag = False
- timer = 0
- count = 0
- while timer<10000:
- if touch.pressed() and not flag:
- flag = True
- count +=1
- elif not touch.pressed():
- flag = False
- timer+=1
- ev3.screen.draw_text(50,50, count)
- wait(3000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement