mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
api: add lights instance
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
:no-members:
|
||||
|
||||
Motor ports:
|
||||
|
||||
|
||||
.. data:: A
|
||||
.. data:: B
|
||||
.. data:: C
|
||||
|
||||
@@ -521,3 +521,8 @@ light = ModuleType('ColorLight')
|
||||
light.color = ColorLight.color
|
||||
light.off = ColorLight.off
|
||||
light.brightness = ColorLight.brightness
|
||||
|
||||
lights = ModuleType('LightArray')
|
||||
lights.on = LightArray.on
|
||||
lights.off = LightArray.off
|
||||
lights.brightness = LightArray.brightness
|
||||
|
||||
Reference in New Issue
Block a user