-
Notifications
You must be signed in to change notification settings - Fork 4
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
QTPy Memory Error #11
Comments
CPy tends to use more RAM over time... really best option is to update your QT Py to an RP2040 since it has 10x the RAM! |
Thanks. I just swapped the TP117 out for an SHT40 and it works with CPy7 and the QTPy. Appears the TP117 is just a more complex sensor as the library is almost twice as large with a lot of functionality built in. |
awesome, thank you |
We could also try and optimize this library. I suspect its RAM used could be reduced by trimming functionality or simplifying APIs. |
we could but thats unlikely to happen soon, better to warn folks until that magical day arrives |
Suggestions for making more compact:
|
Also, |
@Neradoc do you want to try improving the size of this library? |
Hello there. I could work on this if needed. @Neradoc, let me know if that is ok with you!. thanks :) |
Yes (I don't actually know why I was assigned to this). |
Will do thanks :) |
I include suggestions in #13. However, we still have te memory allocation problem. Path from here will be either:
or
Either way, it would be a breaking change. Just a note, I have not done the test removing the CV class, so not sure of the result and we could end up doing solution 1. So let me know with path do you prefer to go. Thanks @tannewt @dhalbert |
I agree with you about removing the CV stuff, which adds overhead and uses space. I would start with that first, and then we will need to update the examples and any Learn Guides. |
Will do thanks :) |
Just an update, removing the CV did not solve the problem. as you could see in 54887af. Thanks |
Issue:
With CircuitPython 7.3.2 and the latest libraries, the TMP117 cannot be used with the QTPy due to a memory allocation error.
Resolution:
Roll back to CircuitPython 6.3.0 and the TMP117 version 6 library.
I know the QTPy has limited memory, but I would expect this would still work with CP7.
Thanks
The text was updated successfully, but these errors were encountered: