MicroPython allocates an object on the heap for a float. Hmmm.
If the program really does work fine without the two lines of the loop, then you can see if memory is being eaten up within the loop, check gc.mem_free().
If the program really does work fine without the two lines of the loop, then you can see if memory is being eaten up within the loop, check gc.mem_free().
Statistics: Posted by katak255 — Thu Jul 31, 2025 9:42 am