# Class «led»

{% hint style="info" %}
This article is automatically translated from Russian by Google Translator.
{% endhint %}

Provides control of the LED on the body of the robot.

| Method                                                               | Description                            |
| -------------------------------------------------------------------- | -------------------------------------- |
| [red](/en/trik/programming-code/object-brick/class-led.md#red)       | Turns the LED on in "red" mode.        |
| [green](/en/trik/programming-code/object-brick/class-led.md#green)   | Turns the LED on in the "green" mode.  |
| [orange](/en/trik/programming-code/object-brick/class-led.md#orange) | Turns the LED on in the "orange" mode. |
| [off](/en/trik/programming-code/object-brick/class-led.md#off)       | Turns off the LED.                     |

## red

Turns the LED on in "red" mode.

#### Syntax

{% tabs %}
{% tab title="JavaScript" %}

```javascript
brick.led().red();	
```

{% endtab %}

{% tab title="Python" %}

```
brick.led().red();
```

{% endtab %}
{% endtabs %}

## green

Turns the LED on in the "green" mode.

#### Syntax

{% tabs %}
{% tab title="JavaScript" %}

```javascript
brick.led().green();	
```

{% endtab %}

{% tab title="Python" %}

```
brick.led().green();
```

{% endtab %}
{% endtabs %}

## orange

Turns the LED on in the "orange" mode.

#### Syntax

{% tabs %}
{% tab title="JavaScript" %}

```javascript
brick.led().orange();
```

{% endtab %}

{% tab title="Python" %}

```
brick.led().orange();
```

{% endtab %}
{% endtabs %}

## off

Turns off the LED.

#### Syntax

{% tabs %}
{% tab title="JavaScript" %}

```javascript
brick.led().off();
```

{% endtab %}

{% tab title="Python" %}

```
brick.led().off();
```

{% endtab %}
{% endtabs %}


---

# 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://help.trikset.com/en/trik/programming-code/object-brick/class-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.
