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, :)
Rotate Display with Circuit Python
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15656
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Rotate Display with Circuit Python
On the CLUE? Set the rotation property of board.DISPLAY to one of 0, 90, 180, or 270. E.g.
That should work on any board with a built-in screen (i.e. has board.DISPLAY).
Dave
Code: Select all
import board
board.DISPLAY.rotation = 90
Dave
- clpie
- Posts: 21
- Joined: Fri Jul 02, 2021 5:38 am
Re: Rotate Display with Circuit Python
Wonderful, thank you. Much appreciated. :)
- dastels
- Posts: 15656
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Rotate Display with Circuit Python
Have fun!
Dave
Dave
Please be positive and constructive with your questions and comments.