Closed Looking4OffSwitch closed 4 years ago
Until the memory leak(s) in the underlying rpi_w281x library is found and fixed then you neeed to create and manage just a single instance, or you'll run headlong into it. There's nothing the Python wrapper can do about this.
Thank you so much for your response @Gadgetoid!
Is there no way to reset a strip so that it can be reused without having to restart my Python script? I see that the
Adafruit_NeoPixel
has a_cleanup()
method but doing the following results in unpredictable behavior (i.e. the LEDs don't function as expected):In my project, the strip can be used for multiple tasks: a clock, a countdown timer, scrolling text, etc. It would be nice if I could "deallocate" the underlying resources so that each task (Python class) could create and manage it's own
Adafruit_NeoPixel
instance.