> For the complete documentation index, see [llms.txt](https://help.trikset.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.trikset.com/en/trik/programming-code/object-brick/class-led.md).

# 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 %}
