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

Memory error using sample on QT Py #2

Closed
rpavlik opened this issue Jan 25, 2021 · 3 comments
Closed

Memory error using sample on QT Py #2

rpavlik opened this issue Jan 25, 2021 · 3 comments

Comments

@rpavlik
Copy link
Contributor

rpavlik commented Jan 25, 2021

Is there any way that I could slim this library down a bit in terms of runtime memory usage? The code looks pretty complete - anything I can just drop out for testing? I am already using mpy versions of everything (installed via circup), on circuitpython 6.1.0 "haxpress" build (I have the spi flash)

@ladyada
Copy link
Member

ladyada commented Jan 25, 2021

you could pull out all the LUT handling stuff,

@rpavlik
Copy link
Contributor Author

rpavlik commented Jan 25, 2021

Oh nifty, I was able to get it to work by commenting out the LUT and the PWM stuff, which still left enough functionality for the example to work (and everything I cared about). Here's the source and mpy. I'll have to look and see sometime if there's an easy-enough way to split this library a little bit so that you get this cut-down version by default, but if you have the RAM you get it all.
Adafruit_CircuitPython_EMC2101.zip

(EDIT: Hmm, but there's less free memory on the Haxpress build. Interesting though not surprising.)

@caternuson
Copy link
Contributor

Fixed with #6

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

3 participants