X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/1e638de1bca0134283c1add31bfe668213489ac7..ebd564d6aea7704a2fd6e2635f49cf7a6795d85d:/python/agnostic.py diff --git a/python/agnostic.py b/python/agnostic.py index 167b4d6..154360a 100644 --- a/python/agnostic.py +++ b/python/agnostic.py @@ -4,7 +4,9 @@ environment is established, can choose various routes to make available and re-export common modules and operations, depending on platform support """ +import gc import sys +gc.collect() try: microcontroller = sys.platform @@ -24,6 +26,7 @@ else: implementation = sys.implementation.name if implementation == "micropython": - from utime import sleep, time + from utime import sleep elif implementation == "circuitpython": - from time import sleep, time + from time import sleep +gc.collect()