Skip to content

Commit

Permalink
Merge pull request #31 from boltar/master
Browse files Browse the repository at this point in the history
Update rpi_ws281x.py
  • Loading branch information
Gadgetoid authored Jan 15, 2020
2 parents 0384873 + 26a7920 commit 4371a7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/rpi_ws281x/rpi_ws281x.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def __init__(self, num, pin, freq_hz=800000, dma=10, invert=False,
def _cleanup(self):
# Clean up memory used by the library when not needed anymore.
if self._leds is not None:
ws.ws2811_fini(self.leds)
ws.delete_ws2811_t(self._leds)
self._leds = None
self._channel = None
Expand Down

0 comments on commit 4371a7a

Please sign in to comment.