Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Rotate Display with Circuit Python
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Rotate Display with Circuit Python

by clpie on Wed Jul 28, 2021 11:51 am

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, :)

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

Re: Rotate Display with Circuit Python

by dastels on Wed Jul 28, 2021 1:14 pm

On the CLUE? Set the rotation property of board.DISPLAY to one of 0, 90, 180, or 270. E.g.
Code: Select all | TOGGLE FULL SIZE
import board
board.DISPLAY.rotation = 90

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

Dave

dastels
 
Posts: 7935
Joined: Tue Oct 20, 2015 3:22 pm

Re: Rotate Display with Circuit Python

by clpie on Wed Jul 28, 2021 1:26 pm

Wonderful, thank you. Much appreciated. :)

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

Re: Rotate Display with Circuit Python

by dastels on Wed Jul 28, 2021 1:38 pm

Have fun!

Dave

dastels
 
Posts: 7935
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.