Some functions for using the leds
ev3c_led | Some functions for using the leds |
Enumerations | |
ev3_led_name | name of an led |
ev3_led_color | color of an led |
Functions | |
ev3_init_led | Initializes the led functions. |
ev3_set_led | Sets the brightness of an led. |
ev3_get_led | Returns the brightness of an led. |
ev3_quit_led | Finishes the work with the leds. |
void ev3_set_led( enum ev3_led_name led, enum ev3_led_color color, int32_t value )
Sets the brightness of an led.
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 |
int32_t ev3_get_led( enum ev3_led_name led, enum ev3_led_color color )
Returns the brightness of an led.
led | (ev3_led_name) which led (LEFT_LED or RIGHT_LED) |
color | (ev3_led_color) which color (GREEN_LED or RED_LED) |
int32_t | brightness, possible values are between 0 and 255 |
Initializes the led functions.
void ev3_init_led()
Sets the brightness of an led.
void ev3_set_led( enum ev3_led_name led, enum ev3_led_color color, int32_t value )
Returns the brightness of an led.
int32_t ev3_get_led( enum ev3_led_name led, enum ev3_led_color color )
Finishes the work with the leds.
void ev3_quit_led()