Leds
- 1 Minute to read
Leds
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
1. Overview
This controller allows you to manipulate all the leds groups that exist in the robotic device.
For example, Gary has leds in the head area, around the button, next to the sensors and in the bottom of the skirt.
Please notice that if you set animation repetition to zero, it will continue to play indefinitely.
2. Main arguments:
Name | Description |
---|---|
Group | groups represent the area of leds that you want to manipulate. For example, "head" group will be used to play a led interaction in the head area. |
Color | the LEDS can be displayed in different colors. In order to see the entire list of possible colors, please visit this doc. |
Animation | For each group area, there are several animations that can be used in order to interact with the end-users. For example, "waiting" animation for head group will display a line moving from left to the right of the head |
3. Using the Controller
from raya.application_base import RayaApplicationBase
class RayaApplication(RayaApplicationBase):
async def setup(self):
...
self.leds = await self.enable_controller('leds')
...
Leds controller methods:
- set_color()
- turn_off_group()
- turn_off_all()
- get_max_speed()
- get_groups()
- get_colors()
- animation()
- get_animations()
Each method page includes standalone examples of their use.
3. Example
Was this article helpful?