Macros | Functions
ev3_led.c File Reference

EV3 LEDs. More...

#include <string.h>
#include <stdio.h>
#include "ev3.h"
#include "ev3_led.h"

Functions

size_t get_led_brightness (uint8_t inx, byte *buf)
 Read "brightness" attribute of the LED. More...
 
size_t set_led_brightness (uint8_t inx, byte value)
 Write "brightness" attribute of the LED. More...
 
size_t get_led_delay_off (uint8_t inx, int *buf)
 Read "delay_off" attribute of the LED. More...
 
size_t set_led_delay_off (uint8_t inx, int value)
 Write "delay_off" attribute of the LED. More...
 
size_t get_led_delay_on (uint8_t inx, int *buf)
 Read "delay_on" attribute of the LED. More...
 
size_t set_led_delay_on (uint8_t inx, int value)
 Write "delay_on" attribute of the LED. More...
 
size_t get_led_max_brightness (uint8_t inx, byte *buf)
 Read "max_brightness" attribute of the LED. More...
 
size_t get_led_trigger (uint8_t inx, char *buf, size_t sz)
 Read "trigger" attribute of the LED. More...
 
size_t set_led_trigger (uint8_t inx, char *value)
 Write "trigger" attribute of the LED. More...
 
const char * ev3_led_trigger (INX_T trigger_inx)
 Get name of the specified LED trigger. More...
 
INX_T get_led_trigger_inx (uint8_t inx)
 Read "trigger" attribute of the LED and get the index. More...
 
size_t set_led_trigger_inx (uint8_t inx, INX_T trigger_inx)
 Write "trigger" attribute of the LED by the index. More...
 

Detailed Description

EV3 LEDs.

(ev3_led.yu-c)

Author
Vitaly Kravtsov (in4li.nosp@m.o@gm.nosp@m.ail.c.nosp@m.om)