mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
e780a65007296384bbde8687fc328c9138744ac8
This makes it much easier to have fine grained control over colors and cycle through them easily (0--360). This also makes it consistent with sensor APIs. Now you can measure the color and plug it into this method. We can make this change because none of the implementations use this yet. If we feel we miss out by dropping the RGB, it would be more fitting to instead expose R, G, and B attributes which point to instances of the Light class. However, this is using more memory for something that isn't very useful. We could also just provide generic color converters between rgb, hsv, and perhaps hex html color strings, not tied to any particular light or sensor.
Pybricks end-user API & Documentation ===================================== This repository documents the Pybricks end-user MicroPython API. Each `Pybricks firmware`_ comes with the `Pybricks package`_. All modules, classes, methods, and functions in that package have optimized implementations in C for high performance and reduced memory footprint. This repository provides an empty, pure Python blueprint of that package. It is used to generate the `official documentation`_. See the `contributor's guide <CONTRIBUTING.md>`_ for acceptable changes and instructions to build the documentation locally. For general discussion, please visit the `support`_ issue tracker. .. _Pybricks package: pybricks .. _Pybricks firmware: https://github.com/pybricks/pybricks-micropython .. _official documentation: https://docs.pybricks.com/ .. _support: https://github.com/pybricks/support/issues
Languages
Python
99.1%
Shell
0.9%