-
Notifications
You must be signed in to change notification settings - Fork 20
Remove max_size parameter #45
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
Conversation
@lesamouraipourpre Adafruit CircuitPython 6.3.0 on 2021-06-01; Adafruit CLUE nRF52840 Express with nRF52840 I test the Results with max_size>>> import clue_ble_color_patchwork
scanning
after scan found 1 results
0
15597568 Results WITHOUT max_sizeAdafruit CircuitPython 6.3.0 on 2021-06-01; Adafruit CLUE nRF52840 Express with nRF52840
>>> import clue_ble_color_patchwork
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "clue_ble_color_patchwork.py", line 146, in <module>
File "/lib/adafruit_display_shapes/rect.py", line 47, in __init__
MemoryError: memory allocation failed, allocating 7680 bytes
>>> I remember that we were waiting for this change, so not sure what is the consequences |
As far as I can see once it hits the C code below it is simply ignored, so removing it should have no effect. Did you use the .PY version of |
I used the |
The |
Yes, I am aware of that, but I use the |
I'm intrigued as to why this is happening then as there should be a very marginal space saving of a byte or two. If the |
yup me too. will do! |
I have replaced the following libraries for the |
Updating https://github.com/adafruit/Adafruit_CircuitPython_CLUE to 2.3.0 from 2.2.9: > Merge pull request adafruit/Adafruit_CircuitPython_CLUE#46 from jposada202020/adding_note > Merge pull request adafruit/Adafruit_CircuitPython_CLUE#45 from lesamouraipourpre/max-size > Moved default branch to main > Moved CI to Python 3.7 > Added help text and problem matcher > Added pull request template > "Increase duplicate code check threshold " Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Button to 1.6.0 from 1.5.5: > Merge pull request adafruit/Adafruit_CircuitPython_Display_Button#32 from lesamouraipourpre/requirements > Merge pull request adafruit/Adafruit_CircuitPython_Display_Button#31 from lesamouraipourpre/max-size > Moved default branch to main > Moved CI to Python 3.7 > Added help text and problem matcher > Added pull request template Updating https://github.com/adafruit/Adafruit_CircuitPython_ProgressBar to 2.3.0 from 2.2.0: > Merge pull request adafruit/Adafruit_CircuitPython_ProgressBar#32 from lesamouraipourpre/max-size > Moved default branch to main
Remove the
max_size
parameter. It is no longer used bydisplayio.Group
Ref: adafruit/circuitpython#4959
I don't have a CLUE to test with.