Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdoe committed Oct 5, 2023
1 parent 6ddaf65 commit 095dfd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/panic/cards/rotate_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
import random

screen = r.get_primary_display()
o = screen.current_orientation

while True:
# most of the time rotate it to the
# current orientation but from time to
# time, flip it around to the left
# or right
d = random.choice([0,30,180,90,270])
d = random.choice([o,o,o,90,270])
screen.rotate_to(d)

# sleep 5 to 10 minutes
Expand Down

0 comments on commit 095dfd7

Please sign in to comment.