Class «led»

This article is automatically translated from Russian by Google Translator.

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

Method

Description

Turns the LED on in "red" mode.

Turns the LED on in the "green" mode.

Turns the LED on in the "orange" mode.

Turns off the LED.

red

Turns the LED on in "red" mode.

Syntax

brick.led().red();	

green

Turns the LED on in the "green" mode.

Syntax

brick.led().green();	

orange

Turns the LED on in the "orange" mode.

Syntax

brick.led().orange();

off

Turns off the LED.

Syntax

brick.led().off();

Last updated