From d5be5e1a28858a21099179b6bf888a1bb12bcb80 Mon Sep 17 00:00:00 2001 From: Pierrick C Date: Mon, 10 Sep 2018 09:58:31 +0200 Subject: [PATCH] Better way to free ressources from unused neopixel --- circuitpython/code/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circuitpython/code/main.py b/circuitpython/code/main.py index 389ab24..c39b037 100644 --- a/circuitpython/code/main.py +++ b/circuitpython/code/main.py @@ -87,7 +87,7 @@ else: # if neopixel is disable : turn off the LED pixel = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=1) pixel[0] = (0, 0, 0) - pixel = None + del pixel sys_data = cameteo.SysData(debug=False) bme_data = cameteo.BME280Data()