Revision 379
fixed some style stuff
trunk/code/projects/libdragonfly/lights.h | ||
---|---|---|
73 | 73 |
void orb_init(void); |
74 | 74 |
/** @brief Set both orbs to a specified color **/ |
75 | 75 |
void orb_set(unsigned char red_led, unsigned char green_led, |
76 |
unsigned char blue_led); |
|
76 |
unsigned char blue_led);
|
|
77 | 77 |
/** @brief Set orb1 to a specified color **/ |
78 | 78 |
void orb1_set(unsigned char red_led, unsigned char green_led, |
79 |
unsigned char blue_led); |
|
79 |
unsigned char blue_led);
|
|
80 | 80 |
/** @brief Set orb2 to a specified color **/ |
81 | 81 |
void orb2_set(unsigned char red_led, unsigned char green_led, |
82 |
unsigned char blue_led); |
|
82 |
unsigned char blue_led);
|
|
83 | 83 |
|
84 | 84 |
/** @brief Set both orbs to a specified color **/ |
85 | 85 |
void orb_set_color(int col); |
trunk/code/projects/libdragonfly/analog.h | ||
---|---|---|
37 | 37 |
|
38 | 38 |
* @author Colony Project, CMU Robotics Club, based on firefly |
39 | 39 |
* code by Tom Lauwers |
40 |
*/ |
|
40 |
*/
|
|
41 | 41 |
|
42 | 42 |
#ifndef _ANALOG_H |
43 | 43 |
#define _ANALOG_H |
... | ... | |
98 | 98 |
|
99 | 99 |
/** @brief Struct to hold the value of a particular analog port */ |
100 | 100 |
typedef struct { |
101 |
uint8_t adc8;
|
|
102 |
uint16_t adc10;
|
|
101 |
uint8_t adc8;
|
|
102 |
uint16_t adc10;
|
|
103 | 103 |
} adc_t; |
104 | 104 |
|
105 | 105 |
|
106 | 106 |
/** @brief Initialize analog ports. Will start running a loop |
107 |
if start_conversion is ADC_START.**/
|
|
107 |
if start_conversion is ADC_START.**/
|
|
108 | 108 |
void analog_init(int start_conversion); |
109 | 109 |
/** @brief starts the analog loop. Doesn't do anything if the loop is already running. **/ |
110 | 110 |
void analog_start_loop(void); |
trunk/code/projects/libdragonfly/dio.h | ||
---|---|---|
39 | 39 |
#define _DIO_H |
40 | 40 |
|
41 | 41 |
/* |
42 |
these are ALL the pins |
|
43 |
don't use unless you know what you're doing |
|
42 |
these are ALL the pins
|
|
43 |
don't use unless you know what you're doing
|
|
44 | 44 |
*/ |
45 | 45 |
|
46 | 46 |
/* |
47 |
DIO pins on new dragonfly boards are shown below: |
|
48 |
----------------------------------------------- |
|
49 |
| _PIN_E6 | _PIN_E7 | _PIN_D2 | _PIN_D3 | VCC | |
|
50 |
----------------------------------------------- |
|
51 |
| _PIN_E2 | _PIN_E3 | _PIN_E4 | _PIN_E5 | GND | |
|
52 |
----------------------------------------------- |
|
47 |
DIO pins on new dragonfly boards are shown below:
|
|
48 |
-----------------------------------------------
|
|
49 |
| _PIN_E6 | _PIN_E7 | _PIN_D2 | _PIN_D3 | VCC |
|
|
50 |
-----------------------------------------------
|
|
51 |
| _PIN_E2 | _PIN_E3 | _PIN_E4 | _PIN_E5 | GND |
|
|
52 |
-----------------------------------------------
|
|
53 | 53 |
*/ |
54 | 54 |
|
55 | 55 |
/** @brief Port A **/ |
... | ... | |
194 | 194 |
//#define _PIN_G7 63 |
195 | 195 |
|
196 | 196 |
/* |
197 |
These are the header pins (the ones you can connect things to) |
|
198 |
Feel free to use these |
|
197 |
These are the header pins (the ones you can connect things to)
|
|
198 |
Feel free to use these
|
|
199 | 199 |
*/ |
200 | 200 |
|
201 | 201 |
/** |
Also available in: Unified diff