Changing orientation of the display

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
dkanday
 
Posts: 60
Joined: Mon Jun 07, 2021 4:49 pm

Changing orientation of the display

Post by dkanday »

Hi,
I would like to change the orientation of the clue display by 90 degree. I added the Adafruit_GFX, Adafruit_BusIO and the Adafruit_ST7735 library files to my audrino code. Then when I add void setRotation(1);

I get the following error message:
variable or field 'setRotation' declared void

But when I add void setRotation(uint8_t 1);
expected ',' or '...' before numeric constant

So I tried But when I add void setRotation(uint8_t, 1);
expected identifier before numeric constant

Is there any parameter that I am missing?

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

Re: Changing orientation of the display

Post by dastels »

Have you tried just calling the function?

Code: Select all

setRotation(1);
Dave

User avatar
dkanday
 
Posts: 60
Joined: Mon Jun 07, 2021 4:49 pm

Re: Changing orientation of the display

Post by dkanday »

Hi Dave,

I get an error message:
test_version:71:3: error: 'setRotation' was not declared in this scope
71 | setRotation(1);
'setRotation' was not declared in this scope

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

Re: Changing orientation of the display

Post by dastels »

It's in the GFX class.

Dave

User avatar
dkanday
 
Posts: 60
Joined: Mon Jun 07, 2021 4:49 pm

Re: Changing orientation of the display

Post by dkanday »

have added that in void setup section

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

Re: Changing orientation of the display

Post by dastels »

What do you mean?

Dave

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

Return to “CLUE Board”