0

Changing orientation of the display
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Changing orientation of the display

by dkanday on Wed Jun 16, 2021 4:15 pm

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?

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

Re: Changing orientation of the display

by dastels on Wed Jun 16, 2021 5:12 pm

Have you tried just calling the function?
Code: Select all | TOGGLE FULL SIZE
setRotation(1);

Dave

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

Re: Changing orientation of the display

by dkanday on Thu Jun 17, 2021 9:49 am

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

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

Re: Changing orientation of the display

by dastels on Thu Jun 17, 2021 10:11 am

It's in the GFX class.

Dave

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

Re: Changing orientation of the display

by dkanday on Thu Jun 17, 2021 5:48 pm

have added that in void setup section

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

Re: Changing orientation of the display

by dastels on Thu Jun 17, 2021 6:12 pm

What do you mean?

Dave

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

Please be positive and constructive with your questions and comments.