[Feature] Simplify pbio color light interface #1798
Labels
enhancement
New feature or request
software: pybricks-micropython
Issues with Pybricks MicroPython firmware (or EV3 runtime)
topic: optimization
Issues related to optimizing the runtime for size or performance.
This is a note for future consideration as we might not get to it now. The system light interface seems to have evolved to be a bit more complicated than it perhaps needs to be.
It seems to be currently:
I suppose it could be:
The intermediate
pbsys
layer here would fulfill a similar role as in the current approach, to disallow user updates when a system light pattern is active.Also, since the fading run animation is not really a system pattern but a (default) "user animation", it can perhaps also be taken out of pbsys, and just get initiated when the user color light is instantiated. This would also allow the user to
.reset()
the light to this state, which is currently not possible.The text was updated successfully, but these errors were encountered: