Better way to free ressources from unused neopixel

This commit is contained in:
Pierrick C 2018-09-10 09:58:31 +02:00
parent af9d40ceb6
commit d5be5e1a28
1 changed files with 1 additions and 1 deletions

View File

@ -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()