14 #ifdef EV3_LIGHT_IMPLEMENT 15 #define EV3_LIGHT_VAR( decl ) \ 17 #define EV3_LIGHT_VAR_INIT( decl, ... ) \ 23 #define EV3_LIGHT_VAR( decl ) \ 25 #define EV3_LIGHT_VAR_INIT( decl, ... ) \ 28 #if __GNUC__ && !__GNUC_STDC_INLINE__ 29 #define EV3_LIGHT_INL \ 32 #define EV3_LIGHT_INL \ 77 EV3_LIGHT_VAR_INIT(
const char *
const LIT_COLOR[], {
"OFF",
"GREEN",
"RED",
"AMBER", STR_unknown_ } );
91 extern void set_light( uint8_t loc, uint8_t col );
123 extern void set_light_blink( uint8_t loc, uint8_t col,
int delay_on,
int delay_off );
140 #undef EV3_LIGHT_VAR_INIT void set_light_blink(uint8_t loc, uint8_t col, int delay_on, int delay_off)
Set the light blink.
Definition: ev3_light.c:85
const char * light_color(uint8_t col)
Get the light color name.
Definition: ev3_light.c:27
EV3_LIGHT_VAR_INIT(const char *const LIT_COLOR[],{"OFF","GREEN","RED","AMBER", STR_unknown_})
Light colors.
void set_light_trigger(uint8_t loc, uint8_t col, uint8_t trigger)
Set the light trigger.
Definition: ev3_light.c:60
bool get_light_blink(uint8_t loc, uint8_t col)
Check the light is blinking.
Definition: ev3_light.c:101
void set_light(uint8_t loc, uint8_t col)
Set the light color.
Definition: ev3_light.c:34
uint8_t get_light(uint8_t loc)
Get the light color.
Definition: ev3_light.c:43
uint8_t get_light_trigger(uint8_t loc, uint8_t col)
Get the light trigger.
Definition: ev3_light.c:68