Skip to content

drawBitmap? #6

@dmemphis

Description

@dmemphis

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions