Better way to free ressources from unused neopixel
This commit is contained in:
parent
af9d40ceb6
commit
d5be5e1a28
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user