Hello all,
I was thinking that it may be a good idea to see how much of your microcontrollers different resources are being used, or "filled" rather. Is there a command to check this, while in a repl?
Also, is there a way to clear all of the things that you had done to it, like importing libraries or creating directories and data? Like maybe a command or something....
cheers!
[SOLVED]clearing changes and listing resources used
[SOLVED]clearing changes and listing resources used
Last edited by dps on Tue Dec 17, 2019 7:46 am, edited 1 time in total.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: clearing changes and listing resources used
dps wrote: ↑Sat Dec 14, 2019 6:46 pmHello all,
I was thinking that it may be a good idea to see how much of your microcontrollers different resources are being used, or "filled" rather. Is there a command to check this, while in a repl?
Also, is there a way to clear all of the things that you had done to it, like importing libraries or creating directories and data? Like maybe a command or something....
cheers!
Code: Select all
import micropython, gc, uos
gc.collect()
micropython.mem_info() # Or use arg 1 for more detail
uos.statvfs('/flash')
Code: Select all
import machine
machine.reset()
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: clearing changes and listing resources used
OH MAN! Thank you so much!