gc.mem_free() - very useful 'free memory' indication for Pybricks #2218
TrainsWithLights
started this conversation in
General
Replies: 1 comment
-
|
For movehub users: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Found this command while reading through some micropython literature. Gave it a quick 'compile and test' and it actually runs on Pybricks
The main advantages
-> NOT needing to load the
from micropython import mem_info, qstr_info, which in itself consumes a few hundred bytes of memory.-> the output is compact and much simpler to read
-> returns a single variable when used within a function
Beta Was this translation helpful? Give feedback.
All reactions