You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.The text was updated successfully, but these errors were encountered: