Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to rotate screen with python

import time
import rotatescreen

screen = rotatescreen.get_primary_display()
start = screen.current_orientation

for i in range(1, 10):
    a = abs((start - i*90) % 360)
    screen.rotate_to(a)
    time.sleep(1)
 
PREVIOUS NEXT
Tagged: #How #rotate #screen #python
ADD COMMENT
Topic
Name
8+2 =