Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / colonet / robot / wl_network_colonet / lights.h @ 481

History | View | Annotate | Download (1014 Bytes)

1 13 emarinel
/*
2
lights.h
3

4
most of this is shamelessly copied from FWR's orb.h (Tom Lauwers and Steven Shamlian)
5

6
author: CMU Robotics Club, Colony Project
7

8
*/
9
10
#ifndef _LIGHTS_H_
11
#define _LIGHTS_H_
12
13
//user LED
14
#define USERLED PING2
15
16
//ORB
17
#define RED       0xE0
18
#define ORANGE    0xE8
19
#define YELLOW    0xFC
20
#define LIME      0x7C
21
#define GREEN     0x1C
22
#define CYAN      0x1F
23
#define BLUE      0x03
24
#define PINK      0x63
25
#define PURPLE    0x23
26
#define MAGENTA   0xE3
27
#define WHITE     0xFF
28
#define ORB_OFF   0x00
29
30
//LEDs are on bank E
31
#define REDLED   PE3
32
#define GREENLED PE4
33
#define BLUELED  PE5
34
35
//?
36
#define COUNT_START 0x8000
37
38
39
//user LED
40
void led_init( void );
41
void led_user(int value);
42
43
44
// For function descriptions see orb.c
45
void orb_init(void);
46
void orb_set(unsigned int red_led, unsigned int green_led, unsigned int blue_led);
47
void orb_set_color(int col);
48
void orb_disable(void);
49
void orb_enable(void);
50
51
void orb_set_dio(int red, int green, int blue);
52
53
#endif