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?
Changing orientation of the display
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Changing orientation of the display
Have you tried just calling the function?
Dave
Code: Select all
setRotation(1);
- dkanday
- Posts: 60
- Joined: Mon Jun 07, 2021 4:49 pm
Re: Changing orientation of the display
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
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
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Changing orientation of the display
It's in the GFX class.
Dave
Dave
- dkanday
- Posts: 60
- Joined: Mon Jun 07, 2021 4:49 pm
Re: Changing orientation of the display
have added that in void setup section
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Changing orientation of the display
What do you mean?
Dave
Dave
Please be positive and constructive with your questions and comments.