embedded system library for e-puck  1.0.1
A redesigned API library for the e-puck robot platform
 All Data Structures Files Functions Variables Enumerations Enumerator Modules Pages
el_led.h
Go to the documentation of this file.
1 /*
2 
3 embedded system library for e-puck
4 
5 --------------------------------------------------------------------------------
6 
7 code distribution:
8 https://github.com/jianingchen/epucklib
9 
10 online documentation:
11 http://jianingchen.github.io/epucklib/html/
12 
13 --------------------------------------------------------------------------------
14 
15 This file is released under the terms of the MIT license (see "el.h").
16 
17 */
18 
39 #ifndef EL_LED_H
40 #define EL_LED_H
41 
42 #include "el_common.h"
43 
44 #define EL_LED_RING_ALL -1
45 #define EL_LED_RING_0 0
46 #define EL_LED_RING_1 1
47 #define EL_LED_RING_2 2
48 #define EL_LED_RING_3 3
49 #define EL_LED_RING_4 4
50 #define EL_LED_RING_5 5
51 #define EL_LED_RING_6 6
52 #define EL_LED_RING_7 7
53 #define EL_LED_BODY 9
54 #define EL_LED_FRONT 10
55 
57 typedef enum{
58  EL_OFF = 0,
59  EL_ON = 1,
60  EL_TOGGLE = -1,
62 
63 
72 void el_led_set(el_index w,el_led_action s);
73 
74 
82 
83 
84 #endif
el_led_action
used in el_led_set.
Definition: el_led.h:57
void el_led_set(el_index w, el_led_action s)
set the status of a LED
int el_get_selector_value()
get the selector position
turn on the LED
Definition: el_led.h:59
turn off the LED
Definition: el_led.h:58
toggle the on/off status of the LED
Definition: el_led.h:60