8000 matrixportal: remove ulab to make room to freeze portalbase by dhalbert · Pull Request #6779 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

matrixportal: remove ulab to make room to freeze portalbase #6779

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

Merged
merged 2 commits into from
Aug 23, 2022

Conversation

dhalbert
Copy link
Collaborator
@dhalbert dhalbert commented Aug 18, 2022

We've removed and then replaced BLE support in MatrixPortal once already:

I think it was restored because the MatrixPortal Guide included the standard mirrored AirLift BLE page. However, I see no Learn Guide projects that use it. We can hide or remove that page in the Guide.

@caternuson (author of #6152) Do you know of any specific reason why we need BLE support in MatrixPortal? Note that the AirLift BLE support only supports acting as a BLE peripheral, not a central.

@makermelissa tagging you for interest and any comment you have.

@caternuson
Copy link

Looking at that issue I wrote - it looks like something I did proxy style for something someone brought up in the forums. But I didn't add a forum link unfortunately. It may have been nothing more than someone working through that one Learn page and hitting the import error.

If there's no current Learn project that uses BLE with MP, then I guess this can be a design choice for the CP devs. I think it'd be neat to leave it in if possible. Could make projects that use the Connect app to interact in some way, etc. - which would be peripheral mode. Similar to this project.

But if there's a design choice to remove it, then definitely should hide that Learn page and anything else that indicates BLE is supported on the MP CP build.

@dhalbert
Copy link
Collaborator Author

@ladyada I discussed this with @caternuson on discord. He suggested there were more potential projects the would use BLE (see above for an example) than ulab. So I'm disabling ulab instead of BLE support for now. In the long run some of these libraries might get smaller.

@dhalbert dhalbert changed the title matrixportal: remove BLEIO HCI to make room to freeze portalbase matrixportal: remove ulab to make room to freeze portalbase Aug 18, 2022
@dhalbert dhalbert requested a review from jepler August 23, 2022 14:04
@dhalbert
Copy link
Collaborator Author

@jepler Adding you as a reviewer. Current choice of disabling ulab is based on discussion at end of Monday's meeting.

@jepler jepler merged commit 6572f85 into adafruit:main Aug 23, 2022
@jepler
Copy link
jepler commented Aug 23, 2022

Thanks!

@CedarGroveStudios
Copy link
CedarGroveStudios commented Sep 23, 2022

Is there an alternative method for using ulab on the matrix portal? The software-based RGB brightness control library I wrote (PaletteFader) depends on ulab.

@makermelissa
Copy link
Collaborator

Is there an alternative method for using ulab on the matrix portal? The software-based RGB brightness control library I wrote (PaletteFader) depends on ulab.

As per the discussion we had at the time, we figured if anybody needed it, a custom build of CircuitPython would work (though you'd probably have to disable BLE in its stead). Perhaps when adafruit/Adafruit_CircuitPython_PortalBase#59 is addressed (depending on results), it might be able to get optimized enough to allow adding both. I have some doubts about that though as the primary focus would be on memory usage, but removing the bloat might be enough to help.

@CedarGroveStudios
Copy link

Thanks. Good to know. I’ll stick with 7.3.2 and will place a note in PaletteFader to warn users. A note in CircuitPython.org would be helpful to bring attention to the one-off incompatibility. Is there a possibility of creating a ulab library instead?

@jepler
Copy link
jepler commented Sep 23, 2022

This discussion reminds me of https://learn.adafruit.com/ocean-epoxy-resin-lightbox-with-rgb-led-matrix-image-scroller/circuitpython-code -- it was coded before matrixportal, but does use ulab & rgbmatrix together.

@CedarGroveStudios
Copy link
CedarGroveStudios commented Sep 23, 2022

This discussion reminds me of ...

... and was the inspiration for the palette calculation portion of PaletteFader. Thank you @jepler and @ladyada!.

Also, ulab was fundamentally useful for the bilinear interpolation method in https://learn.adafruit.com/improved-amg8833-pygamer-thermal-camera. I've been trying to use ulab in my projects whenever possible.

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

Successfully merging this pull request may close these issues.

Matrix Portal M4 Network object is getting heavier
5 participants
0