Macros | Functions
ev3_light.c File Reference

EV3 Lights (GREEN and RED LEDs at once). More...

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

Macros

#define EV3_LIGHT_IMPLEMENT
 
#define LIT_DELAY_DEFAULT   500
 

Functions

const char * light_color (uint8_t col)
 Get the light color name. More...
 
void set_light (uint8_t loc, uint8_t col)
 Set the light color. More...
 
uint8_t get_light (uint8_t loc)
 Get the light color. More...
 
void set_light_trigger (uint8_t loc, uint8_t col, uint8_t trigger)
 Set the light trigger. More...
 
uint8_t get_light_trigger (uint8_t loc, uint8_t col)
 Get the light trigger. More...
 
void set_light_blink (uint8_t loc, uint8_t col, int delay_on, int delay_off)
 Set the light blink. More...
 
bool get_light_blink (uint8_t loc, uint8_t col)
 Check the light is blinking. More...
 

Detailed Description

EV3 Lights (GREEN and RED LEDs at once).

(ev3_light.yu-c)

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