EV3RT C API Reference [English]
An RTOS-based development platform for LEGO Mindstorms EV3.
 All Data Structures Functions Variables Enumerations Enumerator Groups

Definitions of API for controlling LED lights of an EV3 intelligent brick. More...

Enumerations

enum  ledcolor_t {
  LED_OFF = 0,
  LED_RED = 1 << 0,
  LED_GREEN = 1 << 1,
  LED_ORANGE = LED_RED | LED_GREEN
}
 Enumeration type for supported LED colors. More...
 

Functions

ER ev3_led_set_color (ledcolor_t color)
 Control the color of LED lights. More...
 

Detailed Description

Definitions of API for controlling LED lights of an EV3 intelligent brick.

Enumeration Type Documentation

enum ledcolor_t

Enumeration type for supported LED colors.

Enumerator
LED_OFF 

Turn off.

LED_RED 

Red.

LED_GREEN 

Green.

LED_ORANGE 

Orange.

Function Documentation

ER ev3_led_set_color ( ledcolor_t  color)

Control the color of LED lights.

When specifying an incorrect setting value, do not change the color of the LED light.

Parameters
colorThe color to set
Return values
E_OKSuccessful completion
E_PARIncorrect setting value