# LED

```
// Some code
import rospy
from clover.srv import SetLEDEffect

set_effect = rospy.ServiceProxy('led/set_effect', SetLEDEffect)  # define proxy to ROS-service

set_effect(r=255, g=0, b=0)  # fill strip with red color
rospy.sleep(2)

set_effect(effect='fade', r=0, g=0, b=255)  # fade to blue color
rospy.sleep(2)

set_effect(effect='rainbow')  # show rainbow

# fill (или пустая строка) – залить всю ленту цветом;
# blink – мигание цветом;
# blink_fast – ускоренное мигание цветом;
# fade – плавное перетекание в цвет;
# wipe – "надвигание" нового цвета;
# flash – быстро мигнуть цветом 2 раза и вернуться к предыдущему эффекту;
# rainbow – переливание ленты цветами радуги;
# rainbow_fill – переливать заливку по цветам радуги.
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tangerine-2.gitbook.io/red_horizon/programmirovanie/koding-gy/led.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
