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
Macros | Enumerations | Functions
el_led.h File Reference
#include "el_common.h"

Go to the source code of this file.

Macros

#define EL_LED_RING_ALL   -1
 
#define EL_LED_RING_0   0
 
#define EL_LED_RING_1   1
 
#define EL_LED_RING_2   2
 
#define EL_LED_RING_3   3
 
#define EL_LED_RING_4   4
 
#define EL_LED_RING_5   5
 
#define EL_LED_RING_6   6
 
#define EL_LED_RING_7   7
 
#define EL_LED_BODY   9
 
#define EL_LED_FRONT   10
 

Enumerations

enum  el_led_action { EL_OFF = 0, EL_ON = 1, EL_TOGGLE = -1 }
 used in el_led_set. More...
 

Functions

void el_led_set (el_index w, el_led_action s)
 set the status of a LED More...
 
int el_get_selector_value ()
 get the selector position More...
 

Detailed Description

Author
Jianing Chen

Enumeration Type Documentation

used in el_led_set.

Enumerator
EL_OFF 

turn off the LED

EL_ON 

turn on the LED

EL_TOGGLE 

toggle the on/off status of the LED

Function Documentation

void el_led_set ( el_index  w,
el_led_action  s 
)

set the status of a LED

Parameters
iindex of the LED
sstatus

See Component Index for the index of each of the LEDs.

int el_get_selector_value ( )

get the selector position

Returns
the selector position ranged in [0,15]