From 095dfd75f209050c75b386f62850e33550cd21be Mon Sep 17 00:00:00 2001 From: borislav nikolov Date: Thu, 5 Oct 2023 15:59:16 +0200 Subject: [PATCH] wip --- projects/panic/cards/rotate_screen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/panic/cards/rotate_screen.py b/projects/panic/cards/rotate_screen.py index 686c81e6..9f405c08 100644 --- a/projects/panic/cards/rotate_screen.py +++ b/projects/panic/cards/rotate_screen.py @@ -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