rcute_cozmars.light¶
-
class
rcute_cozmars.light.Lights(robot)¶ Builtin LEDs on the sonar module
-
brightness¶ get/set brightness at
default_speed, 0~1, default is 0.05
-
color¶ get/set led color in BGR mode
-
max_brightness¶ 1.0, read only
-
min_brightness¶ Minimum brightness, 0, that is, totally dark, read only
-
set_brightness(brightness, *, fade_duration=None, fade_speed=None)¶ 参数: - brightness (float) – 0~1
- fade_duration (float) – in seconds, the default is None, which means no fade
- fade_speed (float) – fade speed (/s), the default is None, which means no fade
引发: TypeError – fade_duration and fade_speed cannot both be set, otherwise an exception will be thrown
-