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

No attribute Fill #2

Closed
BorisKourt opened this issue Jun 3, 2017 · 4 comments
Closed

No attribute Fill #2

BorisKourt opened this issue Jun 3, 2017 · 4 comments

Comments

@BorisKourt
Copy link
Contributor

I am using a feather M0 simple, with a Matrix board.

When I try to run the following:

import adafruit_is31fl3731
import board
import busio
with busio.I2C(board.SCL, board.SDA) as i2c:
    display = adafruit_is31fl3731.Matrix(i2c)
    display.fill(127)

I get

AttributeError: 'Matrix' object has no attribute 'fill'

If I try to run the same code again in the same REPL session I get:

MemoryError: parser could not allocate enough memory

What am I doing wrong?

Thanks,
Boris

@tannewt
Copy link
Member

tannewt commented Jun 5, 2017

I'm not sure about the memory error. That can depend a bit on the order that you do things. So, for that, please post everything you'd typed into the REPL.

For the fill issue, you've run into another doc problem. When I redid this library I changed it to have eight independent frames that you can edit. This allows you to switch quickly between multiple different designs really quickly. However, I didn't update the docs nor actually add the API to switch frames.

So, for now, you should be able to do display.displayed_frame.fill(127). (display.displayed_frame is the same as display.frames[0]) I need to fix the ability to set display_frame to a different frame (display.displayed_frame = display.frames[3] for example). Right now I believe the object will be changed but the display won't update.

@tannewt tannewt self-assigned this Jun 5, 2017
@BorisKourt
Copy link
Contributor Author

Thanks for the clarification. Is this something I can contribute or would you rather do this yourself?

@tannewt
Copy link
Member

tannewt commented Jun 5, 2017

I would love it if you'd do it. :-) I'm happy to help with any issues you have trying to do it. I'm also on our Gitter chat most days and can help there as well.

@tannewt tannewt removed their assignment Sep 6, 2017
@tannewt
Copy link
Member

tannewt commented Jan 24, 2018

This issue came up on the experimental version which is no longer in master. It will be somewhat revived later but for now we can close this.

@tannewt tannewt closed this as completed Jan 24, 2018
DJDevon3 added a commit to DJDevon3/Adafruit_CircuitPython_IS31FL3731 that referenced this issue Apr 2, 2024
I'm pretty sure I won't even get it on my 2nd attempt so might as well number them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants