We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm having these two objects:
TFT_eSPI display = TFT_eSPI(); TFT_eSprite sprite = TFT_eSprite(&display);
As TFT_eSprite is derived from TFT_eSPI, I expect to easily switch between the two,
by using either
TFT_eSPI* pDisplay = &display;
or
TFT_eSPI* pDisplay = &sprite;
But calling this:
pDisplay->pushImage(x, y, w, h, data);
will always use the pushImage method from the base class.
pushImage and other methods that are inherited from the base class should be virtual in the base class.
Am I missing something? Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm having these two objects:
As TFT_eSprite is derived from TFT_eSPI, I expect to easily switch between the two,
by using either
or
But calling this:
will always use the pushImage method from the base class.
pushImage and other methods that are inherited from the base class should be virtual in the base class.
Am I missing something? Thanks!
The text was updated successfully, but these errors were encountered: