Merge pull request #974 from LeePorte/gc-addition-to-weather

Add Garbage Collection to weather example
pull/879/merge
Philip Howard 2024-10-25 16:01:56 +01:00 zatwierdzone przez GitHub
commit 3f50bf7ef0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -3,6 +3,7 @@ from network_manager import NetworkManager
import uasyncio import uasyncio
import urequests import urequests
import time import time
import gc
import plasma import plasma
from plasma import plasma_stick from plasma import plasma_stick
# Random functions! randrange is for picking integers from a range, and uniform is for floats. # Random functions! randrange is for picking integers from a range, and uniform is for floats.
@ -258,3 +259,5 @@ while True:
move_to_target() # nudge our current colours closer to the target colours move_to_target() # nudge our current colours closer to the target colours
display_current() # display current colours to strip display_current() # display current colours to strip
gc.collect()