api: add lights instance

This commit is contained in:
Laurens Valk
2019-06-06 11:03:11 +02:00
parent 6fb78141c5
commit 8bc96822b2
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
:no-members:
Motor ports:
.. data:: A
.. data:: B
.. data:: C
+5
View File
@@ -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