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

drawBitmap? #6

Open
dmemphis opened this issue Dec 29, 2016 · 1 comment
Open

drawBitmap? #6

dmemphis opened this issue Dec 29, 2016 · 1 comment

Comments

@dmemphis
Copy link

dmemphis commented Dec 29, 2016

Hi- I went to try to substitute a 7219 in place of a I2C backpack used in the adafruit backpack
example sketch that implements a moving eyeball.
https://learn.adafruit.com/animating-multiple-led-backpacks/software
The sketch used a member function drawBitmap.
When substituting the 72xx lib for the backpack lib, and changing the matrix class structure from
Adafruit_8x8matrix matrix = Adafruit_8x8matrix();
to
Max72xxPanel matrix = Max72xxPanel(pinCS, numberOfHorizontalDisplays, numberOfVerticalDisplays);
Compiling reports:

exit status 1
'class Max72xxPanel' has no member named 'drawBitmap'

indicating drawBitmap appears to not be supported, and in fact cannot be found
in the 72xx .cpp. I thought this paragraph on Adafruit:

"The Max72xxPanel library implements Adafruit's GFX library for multiple 8x8 LED displays driven by MAX7219 or MAX7221, in arbitrary rectangular layout. Support for basic graphic primitives and text. Features double buffering to prevent flicker. "

meant that any piece of code that uses the GFX library work under the Max72xxPanel lib.
Clearly I cannot substitute Max72xxPanel for Adafruit_8x8matrix I2C backpack lib.
Is this an oversight or do I have an unrealistic expectation of what it means for a "library to implement
Adafruit's GFX library"?

Would you care to update to support drawBitmap?

@AHorneffer
Copy link

drawBitmap should be part of the Adafruit_GFX library and thus automatically included. Do you have a small sketch that demonstrates your problem?

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