Rotate Display with Circuit Python

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
clpie
 
Posts: 21
Joined: Fri Jul 02, 2021 5:38 am

Rotate Display with Circuit Python

Post by clpie »

Hi there,

I was just wondering, does anyone know if it's possible to rotate the display (say 90 degrees) in circuit python? Or if not, how to write text to the screen which is rotated?

Thank you, :)

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Rotate Display with Circuit Python

Post by dastels »

On the CLUE? Set the rotation property of board.DISPLAY to one of 0, 90, 180, or 270. E.g.

Code: Select all

import board
board.DISPLAY.rotation = 90
That should work on any board with a built-in screen (i.e. has board.DISPLAY).

Dave

User avatar
clpie
 
Posts: 21
Joined: Fri Jul 02, 2021 5:38 am

Re: Rotate Display with Circuit Python

Post by clpie »

Wonderful, thank you. Much appreciated. :)

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Rotate Display with Circuit Python

Post by dastels »

Have fun!

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “CLUE Board”