ev3c_led

Some functions for using the leds

Summary
ev3c_ledSome functions for using the leds
Enumerations
ev3_led_namename of an led
ev3_led_colorcolor of an led
Functions
ev3_init_ledInitializes the led functions.
ev3_set_ledSets the brightness of an led.
ev3_get_ledReturns the brightness of an led.
ev3_quit_ledFinishes the work with the leds.

Enumerations

ev3_led_name

name of an led

Values

LEFT_LEDleft led
RIGHT_LEDright led

ev3_led_color

color of an led

Values

GREEN_LEDgreen led
RED_LEDred led

Functions

ev3_init_led

void ev3_init_led()

Initializes the led functions.  Need to be called before using the leds

ev3_set_led

void ev3_set_led(enum ev3_led_name led,
enum ev3_led_color color,
int32_t value)

Sets the brightness of an led.

Parameters

led(ev3_led_name) which led (LEFT_LED or RIGHT_LED)
color(ev3_led_color) which color (GREEN_LED or RED_LED)
value(int32_t) brightness, possible values are between 0 and 255

ev3_get_led

int32_t ev3_get_led(enum ev3_led_name led,
enum ev3_led_color color)

Returns the brightness of an led.

Parameters

led(ev3_led_name) which led (LEFT_LED or RIGHT_LED)
color(ev3_led_color) which color (GREEN_LED or RED_LED)

Returns

int32_tbrightness, possible values are between 0 and 255

ev3_quit_led

void ev3_quit_led()

Finishes the work with the leds.  Has to be called at the very end of the program

void ev3_init_led()
Initializes the led functions.
void ev3_set_led(enum ev3_led_name led,
enum ev3_led_color color,
int32_t value)
Sets the brightness of an led.
int32_t ev3_get_led(enum ev3_led_name led,
enum ev3_led_color color)
Returns the brightness of an led.
void ev3_quit_led()
Finishes the work with the leds.
name of an led
color of an led
Close