Contiki 3.x
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
platform
avr-rss2
dev
leds.h
1
2
#ifndef CONTIKI_LED_H_
3
#define CONTIKI_LED_H_
4
5
#define LEDS_GREEN 1
6
#define LEDS_YELLOW 2
7
#define LEDS_RED 4
8
#define LEDS_ALL 7
9
10
void
leds_init(
void
);
/* Initialize the LEDs driver. */
11
unsigned
char
leds_get
(
void
);
/* Get the status of a LED. */
12
void
leds_on(
unsigned
char
ledv);
/* Turn on a set of LEDs. */
13
void
leds_off(
unsigned
char
ledv);
/* Turn off a set of LEDs. */
14
void
leds_toggle(
unsigned
char
ledv);
/* Toggle a set of LEDs. */
15
void
leds_invert(
unsigned
char
ledv);
/* Toggle a set of LEDs. */
16
17
#endif
/* CONTIKI_LED_H_ */
leds_get
unsigned char leds_get(void)
Returns the current status of all leds.
Definition:
leds.c:92
Generated on Thu Jul 6 2017 20:52:38 for Contiki 3.x by
1.8.6