Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (distance() <= 100):
- zone = 1
- if (distance() >= 2000):
- zone = 1
- elif (100 < distance() < 2000):
- zone = 2
- if (zone == 1):
- Popen(['/usr/bin/omxplayer', '--display','0', movie1])
- time.sleep(6)
- if (zone == 2):
- Popen(['/usr/bin/omxplayer', '--display','0', movie2])
- time.sleep(6)
Add Comment
Please, Sign In to add comment