You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I'm getting this problem when I try to compile the example:
C:\Users\Giovanni\Documents\Arduino\libraries\SSD1306\Adafruit_SSD1306.cpp:433:6: error: prototype for 'void Adafruit_SSD1306::dim(boolean)' does not match any in class 'Adafruit_SSD1306'
void Adafruit_SSD1306::dim(boolean dim) {
^
In file included from C:\Users\Giovanni\Documents\Arduino\libraries\SSD1306\Adafruit_SSD1306.cpp:28:0:
C:\Users\Giovanni\Documents\Arduino\libraries\SSD1306\Adafruit_SSD1306.h:152:8: error: candidate is: void Adafruit_SSD1306::dim(uint8_t)
void dim(uint8_t contrast);
^
50f9ee0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting this problem when I try to compile the example:
C:\Users\Giovanni\Documents\Arduino\libraries\SSD1306\Adafruit_SSD1306.cpp:433:6: error: prototype for 'void Adafruit_SSD1306::dim(boolean)' does not match any in class 'Adafruit_SSD1306'
void Adafruit_SSD1306::dim(boolean dim) {
^
In file included from C:\Users\Giovanni\Documents\Arduino\libraries\SSD1306\Adafruit_SSD1306.cpp:28:0:
C:\Users\Giovanni\Documents\Arduino\libraries\SSD1306\Adafruit_SSD1306.h:152:8: error: candidate is: void Adafruit_SSD1306::dim(uint8_t)
void dim(uint8_t contrast);
^
Could some one help me?
50f9ee0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have an old version of this library on your computer, in Documents\Arduino\libraries\SSD1306.
Simply delete the old copy and install the latest version. This problem was fixed months ago. You simply have the old copy from before the fix.
50f9ee0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No Paul, I have the last one, fixed 3 months ago. Even that the error persists.
50f9ee0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, you only think you have the latest version. You certainly are compiling the old version. Nothing else could produce that error.
50f9ee0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hadn't deleted the old library in "Documents" yet, that was my error.
Thanks Paul.