We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8915e3e commit 3920ce1Copy full SHA for 3920ce1
internal_filesystem/main.py
@@ -16,7 +16,7 @@
16
CLOCK_UPDATE_INTERVAL = 100 # 10 or even 1 ms doesn't seem to change the framerate but 100ms is enough
17
WIFI_ICON_UPDATE_INTERVAL = 1500
18
TEMPERATURE_UPDATE_INTERVAL = 2000
19
-MEMFREE_UPDATE_INTERVAL = 1000
+MEMFREE_UPDATE_INTERVAL = 5000 # not too frequent because there's a forced gc.collect() to give it a reliable value
20
21
# Color palette
22
DARKPINK = lv.color_hex(0xEC048C)
@@ -144,6 +144,7 @@ def update_temperature(timer):
144
145
import gc
146
def update_memfree(timer):
147
+ gc.collect()
148
memfree_label.set_text(f"{gc.mem_free()}")
149
150
lv.timer_create(update_time, CLOCK_UPDATE_INTERVAL, None)
0 commit comments