Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: invalid cast to abstract class type 'Adafruit_SH110X' #53

Closed
githubguy007 opened this issue Oct 16, 2021 · 3 comments
Closed

error: invalid cast to abstract class type 'Adafruit_SH110X' #53

githubguy007 opened this issue Oct 16, 2021 · 3 comments

Comments

@githubguy007
Copy link
Contributor

I receive an error, when compiling with...

#define USE_OLED true

The error message is...

Arduino: 1.8.16 (Mac OS X), Board: "Adafruit Feather M4 Express (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off"

multiple_encoders:16:59: error: invalid cast to abstract class type 'Adafruit_SH110X'
16 | Adafruit_SH110X display = Adafruit_SH110X(64, 128, &Wire);

Replacing...

Adafruit_SH110X display = Adafruit_SH110X(64, 128, &Wire);

With....

Adafruit_SH1107 display = Adafruit_SH1107(64, 128, &Wire);

Compiles successfully.

@ladyada
Copy link
Member

ladyada commented Oct 16, 2021

ok thanks, can you submit a PR please ? :)

@githubguy007
Copy link
Contributor Author

My first PR, hopefully I did it properly.

@ladyada
Copy link
Member

ladyada commented Oct 16, 2021

looks good! congrats :)

@ladyada ladyada closed this as completed Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants