Open Issues Need Help
View All on GitHubAI Summary: Define a standard interface for creating and running Neopixel lighting effects in CircuitPython. This involves designing a `LightingEffect` class with methods for creating generators that produce animation frames, and establishing best practices for creating and managing multiple effects concurrently.
AI Summary: Refactor the Neopixel animation code to eliminate the use of global variables (like `num_pixels`) for accessing pixel elements. Instead, utilize Python's built-in iteration methods like `enumerate` to iterate directly over the pixel array or slices thereof, allowing for more flexible and modular lighting effects that can operate on subsets of the pixel string.
AI Summary: Implement a `RainbowCycle` class in CircuitPython to create a rainbow lighting effect for Neopixels. The class should be based on an existing code snippet, but adapted to use a generator with `yield` to integrate with the project's existing effects orchestrator, which runs effects in 20ms chunks. The task involves understanding the existing code structure and adapting the provided rainbow cycle function to fit the generator-based architecture.