root / trunk / docs / libdragonfly / group__orbs.html @ 241
History | View | Annotate | Download (21.7 KB)
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|---|
2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
3 |
<title>libdragonfly: Orbs</title> |
4 |
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
5 |
<link href="tabs.css" rel="stylesheet" type="text/css"> |
6 |
</head><body> |
7 |
<!-- Generated by Doxygen 1.5.3 -->
|
8 |
<div class="tabs"> |
9 |
<ul>
|
10 |
<li><a href="index.html"><span>Main Page</span></a></li> |
11 |
<li><a href="modules.html"><span>Modules</span></a></li> |
12 |
<li><a href="files.html"><span>Files</span></a></li> |
13 |
<li><a href="pages.html"><span>Related Pages</span></a></li> |
14 |
</ul>
|
15 |
</div>
|
16 |
<h1>Orbs</h1>Functions for controlling the color of the orbs. |
17 |
<a href="#_details">More...</a><table border="0" cellpadding="0" cellspacing="0"> |
18 |
<tr><td></td></tr> |
19 |
<tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
20 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g8d23feea868a983c8c2b661e1e16972f"></a><!-- doxytag: member="orbs::RED" ref="g8d23feea868a983c8c2b661e1e16972f" args="" --> |
21 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g8d23feea868a983c8c2b661e1e16972f">RED</a> 0xE0</td></tr> |
22 |
|
23 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Red. <br></td></tr> |
24 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc5b6e19bf06822021f35602c59658de3"></a><!-- doxytag: member="orbs::ORANGE" ref="gc5b6e19bf06822021f35602c59658de3" args="" --> |
25 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gc5b6e19bf06822021f35602c59658de3">ORANGE</a> 0xE4</td></tr> |
26 |
|
27 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Orange. <br></td></tr> |
28 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gbf681265909adf3d3e8116c93c0ba179"></a><!-- doxytag: member="orbs::YELLOW" ref="gbf681265909adf3d3e8116c93c0ba179" args="" --> |
29 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gbf681265909adf3d3e8116c93c0ba179">YELLOW</a> 0xE8</td></tr> |
30 |
|
31 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Yellow. <br></td></tr> |
32 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g46019a1f2c10603a54b6cbb19cbf3c21"></a><!-- doxytag: member="orbs::LIME" ref="g46019a1f2c10603a54b6cbb19cbf3c21" args="" --> |
33 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g46019a1f2c10603a54b6cbb19cbf3c21">LIME</a> 0x68</td></tr> |
34 |
|
35 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Lime. <br></td></tr> |
36 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gcfbc006ea433ad708fdee3e82996e721"></a><!-- doxytag: member="orbs::GREEN" ref="gcfbc006ea433ad708fdee3e82996e721" args="" --> |
37 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gcfbc006ea433ad708fdee3e82996e721">GREEN</a> 0x1C</td></tr> |
38 |
|
39 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Green. <br></td></tr> |
40 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gd243f93c16bc4c1d3e0a13b84421d760"></a><!-- doxytag: member="orbs::CYAN" ref="gd243f93c16bc4c1d3e0a13b84421d760" args="" --> |
41 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gd243f93c16bc4c1d3e0a13b84421d760">CYAN</a> 0x1F</td></tr> |
42 |
|
43 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Cyan. <br></td></tr> |
44 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g79d10e672abb49ad63eeaa8aaef57c38"></a><!-- doxytag: member="orbs::BLUE" ref="g79d10e672abb49ad63eeaa8aaef57c38" args="" --> |
45 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g79d10e672abb49ad63eeaa8aaef57c38">BLUE</a> 0x03</td></tr> |
46 |
|
47 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Blue. <br></td></tr> |
48 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gda419fe3b48fcf19daed7cc57ccf1174"></a><!-- doxytag: member="orbs::PINK" ref="gda419fe3b48fcf19daed7cc57ccf1174" args="" --> |
49 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gda419fe3b48fcf19daed7cc57ccf1174">PINK</a> 0xA6</td></tr> |
50 |
|
51 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Pink. <br></td></tr> |
52 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g0bb0b009e7a7390473ace4d98bd843c0"></a><!-- doxytag: member="orbs::PURPLE" ref="g0bb0b009e7a7390473ace4d98bd843c0" args="" --> |
53 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g0bb0b009e7a7390473ace4d98bd843c0">PURPLE</a> 0x41</td></tr> |
54 |
|
55 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Purple. <br></td></tr> |
56 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g6f699060902f800f12aaae150f3a708e"></a><!-- doxytag: member="orbs::MAGENTA" ref="g6f699060902f800f12aaae150f3a708e" args="" --> |
57 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g6f699060902f800f12aaae150f3a708e">MAGENTA</a> 0xE3</td></tr> |
58 |
|
59 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Magenta. <br></td></tr> |
60 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g87b537f5fa5c109d3c05c13d6b18f382"></a><!-- doxytag: member="orbs::WHITE" ref="g87b537f5fa5c109d3c05c13d6b18f382" args="" --> |
61 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g87b537f5fa5c109d3c05c13d6b18f382">WHITE</a> 0xFE</td></tr> |
62 |
|
63 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">White. <br></td></tr> |
64 |
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gcf2f6da92d895ef5e594223f1e39e4b1"></a><!-- doxytag: member="orbs::ORB_OFF" ref="gcf2f6da92d895ef5e594223f1e39e4b1" args="" --> |
65 |
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gcf2f6da92d895ef5e594223f1e39e4b1">ORB_OFF</a> 0xFE</td></tr> |
66 |
|
67 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Turn the orb off (White). <br></td></tr> |
68 |
<tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
69 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9">orb_init</a> (void)</td></tr> |
70 |
|
71 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enables the orbs. <a href="#g13069271f9d636674e9b4a8a355099b9"></a><br></td></tr> |
72 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#ga75385bd1398949615ee1fe78a535cff">orb_set</a> (unsigned char red_led, unsigned char green_led, unsigned char blue_led)</td></tr> |
73 |
|
74 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set both orbs to a specified color. <a href="#ga75385bd1398949615ee1fe78a535cff"></a><br></td></tr> |
75 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g2df1397345a557295b12e50451f8592e">orb1_set</a> (unsigned char red_led, unsigned char green_led, unsigned char blue_led)</td></tr> |
76 |
|
77 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set orb1 to a specified color. <a href="#g2df1397345a557295b12e50451f8592e"></a><br></td></tr> |
78 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gb19679987f51d6ed35461d581ca8972b">orb2_set</a> (unsigned char red_led, unsigned char green_led, unsigned char blue_led)</td></tr> |
79 |
|
80 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set orb2 to a specified color. <a href="#gb19679987f51d6ed35461d581ca8972b"></a><br></td></tr> |
81 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g123d2880d20bf6d0bb387024c8f6da81">orb_set_color</a> (int col)</td></tr> |
82 |
|
83 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set both orbs to a specified color. <a href="#g123d2880d20bf6d0bb387024c8f6da81"></a><br></td></tr> |
84 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g131d9bf3e32cf5530f4cc671ea496609">orb1_set_color</a> (int col)</td></tr> |
85 |
|
86 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set orb1 to a specified color. <a href="#g131d9bf3e32cf5530f4cc671ea496609"></a><br></td></tr> |
87 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g3125d9c661a33b3fdeb4eca75ca00cab">orb2_set_color</a> (int col)</td></tr> |
88 |
|
89 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set orb2 to a specified color. <a href="#g3125d9c661a33b3fdeb4eca75ca00cab"></a><br></td></tr> |
90 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g1ea1b363a0592f80798f6a1e260a70e9">orb_disable</a> (void)</td></tr> |
91 |
|
92 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Disable the orbs. <a href="#g1ea1b363a0592f80798f6a1e260a70e9"></a><br></td></tr> |
93 |
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g5911e3fa322de2e760a92a44d5a6a547">orb_enable</a> (void)</td></tr> |
94 |
|
95 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enable the orbs. <a href="#g5911e3fa322de2e760a92a44d5a6a547"></a><br></td></tr> |
96 |
</table>
|
97 |
<hr><a name="_details"></a><h2>Detailed Description</h2> |
98 |
Functions for controlling the color of the orbs. |
99 |
<p>
|
100 |
Functions for controlling the color and lighting of the orbs. <hr><h2>Function Documentation</h2> |
101 |
<a class="anchor" name="g2df1397345a557295b12e50451f8592e"></a><!-- doxytag: member="lights.c::orb1_set" ref="g2df1397345a557295b12e50451f8592e" args="(unsigned char red_led, unsigned char green_led, unsigned char blue_led)" --> |
102 |
<div class="memitem"> |
103 |
<div class="memproto"> |
104 |
<table class="memname"> |
105 |
<tr>
|
106 |
<td class="memname">void orb1_set </td> |
107 |
<td>(</td> |
108 |
<td class="paramtype">unsigned char </td> |
109 |
<td class="paramname"> <em>red_led</em>, </td> |
110 |
</tr>
|
111 |
<tr>
|
112 |
<td class="paramkey"></td> |
113 |
<td></td> |
114 |
<td class="paramtype">unsigned char </td> |
115 |
<td class="paramname"> <em>green_led</em>, </td> |
116 |
</tr>
|
117 |
<tr>
|
118 |
<td class="paramkey"></td> |
119 |
<td></td> |
120 |
<td class="paramtype">unsigned char </td> |
121 |
<td class="paramname"> <em>blue_led</em></td><td> </td> |
122 |
</tr>
|
123 |
<tr>
|
124 |
<td></td> |
125 |
<td>)</td> |
126 |
<td></td><td></td><td width="100%"></td> |
127 |
</tr>
|
128 |
</table>
|
129 |
</div>
|
130 |
<div class="memdoc"> |
131 |
|
132 |
<p>
|
133 |
Set orb1 to a specified color. |
134 |
<p>
|
135 |
Set orb1 to the color specified. orb_init must be called before this function may be used.<p>
|
136 |
<dl compact><dt><b>Parameters:</b></dt><dd> |
137 |
<table border="0" cellspacing="2" cellpadding="0"> |
138 |
<tr><td valign="top"></td><td valign="top"><em>red_led</em> </td><td>the red component of the color </td></tr> |
139 |
<tr><td valign="top"></td><td valign="top"><em>green_led</em> </td><td>the green component of the color </td></tr> |
140 |
<tr><td valign="top"></td><td valign="top"><em>blue_led</em> </td><td>the blue component of the color</td></tr> |
141 |
</table>
|
142 |
</dl>
|
143 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs.">orb_init</a> </dd></dl> |
144 |
|
145 |
</div>
|
146 |
</div><p> |
147 |
<a class="anchor" name="g131d9bf3e32cf5530f4cc671ea496609"></a><!-- doxytag: member="lights.c::orb1_set_color" ref="g131d9bf3e32cf5530f4cc671ea496609" args="(int col)" --> |
148 |
<div class="memitem"> |
149 |
<div class="memproto"> |
150 |
<table class="memname"> |
151 |
<tr>
|
152 |
<td class="memname">void orb1_set_color </td> |
153 |
<td>(</td> |
154 |
<td class="paramtype">int </td> |
155 |
<td class="paramname"> <em>col</em> </td> |
156 |
<td> ) </td> |
157 |
<td width="100%"></td> |
158 |
</tr>
|
159 |
</table>
|
160 |
</div>
|
161 |
<div class="memdoc"> |
162 |
|
163 |
<p>
|
164 |
Set orb1 to a specified color. |
165 |
<p>
|
166 |
Set orb1 to the specified color. This function is intended to be used with the predefined colors. orb_init must be called before this function may be used.<p>
|
167 |
<dl compact><dt><b>Parameters:</b></dt><dd> |
168 |
<table border="0" cellspacing="2" cellpadding="0"> |
169 |
<tr><td valign="top"></td><td valign="top"><em>col</em> </td><td>the color to set the orbs to</td></tr> |
170 |
</table>
|
171 |
</dl>
|
172 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs.">orb_init</a> </dd></dl> |
173 |
|
174 |
</div>
|
175 |
</div><p> |
176 |
<a class="anchor" name="gb19679987f51d6ed35461d581ca8972b"></a><!-- doxytag: member="lights.c::orb2_set" ref="gb19679987f51d6ed35461d581ca8972b" args="(unsigned char red_led, unsigned char green_led, unsigned char blue_led)" --> |
177 |
<div class="memitem"> |
178 |
<div class="memproto"> |
179 |
<table class="memname"> |
180 |
<tr>
|
181 |
<td class="memname">void orb2_set </td> |
182 |
<td>(</td> |
183 |
<td class="paramtype">unsigned char </td> |
184 |
<td class="paramname"> <em>red_led</em>, </td> |
185 |
</tr>
|
186 |
<tr>
|
187 |
<td class="paramkey"></td> |
188 |
<td></td> |
189 |
<td class="paramtype">unsigned char </td> |
190 |
<td class="paramname"> <em>green_led</em>, </td> |
191 |
</tr>
|
192 |
<tr>
|
193 |
<td class="paramkey"></td> |
194 |
<td></td> |
195 |
<td class="paramtype">unsigned char </td> |
196 |
<td class="paramname"> <em>blue_led</em></td><td> </td> |
197 |
</tr>
|
198 |
<tr>
|
199 |
<td></td> |
200 |
<td>)</td> |
201 |
<td></td><td></td><td width="100%"></td> |
202 |
</tr>
|
203 |
</table>
|
204 |
</div>
|
205 |
<div class="memdoc"> |
206 |
|
207 |
<p>
|
208 |
Set orb2 to a specified color. |
209 |
<p>
|
210 |
Set orb2 to the color specified. orb_init must be called before this function may be used.<p>
|
211 |
<dl compact><dt><b>Parameters:</b></dt><dd> |
212 |
<table border="0" cellspacing="2" cellpadding="0"> |
213 |
<tr><td valign="top"></td><td valign="top"><em>red_led</em> </td><td>the red component of the color </td></tr> |
214 |
<tr><td valign="top"></td><td valign="top"><em>green_led</em> </td><td>the green component of the color </td></tr> |
215 |
<tr><td valign="top"></td><td valign="top"><em>blue_led</em> </td><td>the blue component of the color</td></tr> |
216 |
</table>
|
217 |
</dl>
|
218 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs.">orb_init</a> </dd></dl> |
219 |
|
220 |
</div>
|
221 |
</div><p> |
222 |
<a class="anchor" name="g3125d9c661a33b3fdeb4eca75ca00cab"></a><!-- doxytag: member="lights.c::orb2_set_color" ref="g3125d9c661a33b3fdeb4eca75ca00cab" args="(int col)" --> |
223 |
<div class="memitem"> |
224 |
<div class="memproto"> |
225 |
<table class="memname"> |
226 |
<tr>
|
227 |
<td class="memname">void orb2_set_color </td> |
228 |
<td>(</td> |
229 |
<td class="paramtype">int </td> |
230 |
<td class="paramname"> <em>col</em> </td> |
231 |
<td> ) </td> |
232 |
<td width="100%"></td> |
233 |
</tr>
|
234 |
</table>
|
235 |
</div>
|
236 |
<div class="memdoc"> |
237 |
|
238 |
<p>
|
239 |
Set orb2 to a specified color. |
240 |
<p>
|
241 |
Set orb2 to the specified color. This function is intended to be used with the predefined colors. orb_init must be called before this function may be used.<p>
|
242 |
<dl compact><dt><b>Parameters:</b></dt><dd> |
243 |
<table border="0" cellspacing="2" cellpadding="0"> |
244 |
<tr><td valign="top"></td><td valign="top"><em>col</em> </td><td>the color to set the orbs to</td></tr> |
245 |
</table>
|
246 |
</dl>
|
247 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs.">orb_init</a> </dd></dl> |
248 |
|
249 |
</div>
|
250 |
</div><p> |
251 |
<a class="anchor" name="g1ea1b363a0592f80798f6a1e260a70e9"></a><!-- doxytag: member="lights.c::orb_disable" ref="g1ea1b363a0592f80798f6a1e260a70e9" args="(void)" --> |
252 |
<div class="memitem"> |
253 |
<div class="memproto"> |
254 |
<table class="memname"> |
255 |
<tr>
|
256 |
<td class="memname">void orb_disable </td> |
257 |
<td>(</td> |
258 |
<td class="paramname"> </td> |
259 |
<td> ) </td> |
260 |
<td width="100%"></td> |
261 |
</tr>
|
262 |
</table>
|
263 |
</div>
|
264 |
<div class="memdoc"> |
265 |
|
266 |
<p>
|
267 |
Disable the orbs. |
268 |
<p>
|
269 |
Disables the orb color fading capabilities by disabling the timer1 interrupt.<p>
|
270 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs.">orb_init</a> </dd></dl> |
271 |
|
272 |
</div>
|
273 |
</div><p> |
274 |
<a class="anchor" name="g5911e3fa322de2e760a92a44d5a6a547"></a><!-- doxytag: member="lights.c::orb_enable" ref="g5911e3fa322de2e760a92a44d5a6a547" args="(void)" --> |
275 |
<div class="memitem"> |
276 |
<div class="memproto"> |
277 |
<table class="memname"> |
278 |
<tr>
|
279 |
<td class="memname">void orb_enable </td> |
280 |
<td>(</td> |
281 |
<td class="paramname"> </td> |
282 |
<td> ) </td> |
283 |
<td width="100%"></td> |
284 |
</tr>
|
285 |
</table>
|
286 |
</div>
|
287 |
<div class="memdoc"> |
288 |
|
289 |
<p>
|
290 |
Enable the orbs. |
291 |
<p>
|
292 |
Enables the orb's color fading capabilities.<p>
|
293 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs.">orb_init</a> </dd></dl> |
294 |
|
295 |
</div>
|
296 |
</div><p> |
297 |
<a class="anchor" name="g13069271f9d636674e9b4a8a355099b9"></a><!-- doxytag: member="lights.c::orb_init" ref="g13069271f9d636674e9b4a8a355099b9" args="(void)" --> |
298 |
<div class="memitem"> |
299 |
<div class="memproto"> |
300 |
<table class="memname"> |
301 |
<tr>
|
302 |
<td class="memname">void orb_init </td> |
303 |
<td>(</td> |
304 |
<td class="paramname"> </td> |
305 |
<td> ) </td> |
306 |
<td width="100%"></td> |
307 |
</tr>
|
308 |
</table>
|
309 |
</div>
|
310 |
<div class="memdoc"> |
311 |
|
312 |
<p>
|
313 |
Enables the orbs. |
314 |
<p>
|
315 |
Initializes the PWM for Orb control. This must be called before the orbs are used for them to function. |
316 |
</div>
|
317 |
</div><p> |
318 |
<a class="anchor" name="ga75385bd1398949615ee1fe78a535cff"></a><!-- doxytag: member="lights.c::orb_set" ref="ga75385bd1398949615ee1fe78a535cff" args="(unsigned char red_led, unsigned char green_led, unsigned char blue_led)" --> |
319 |
<div class="memitem"> |
320 |
<div class="memproto"> |
321 |
<table class="memname"> |
322 |
<tr>
|
323 |
<td class="memname">void orb_set </td> |
324 |
<td>(</td> |
325 |
<td class="paramtype">unsigned char </td> |
326 |
<td class="paramname"> <em>red_led</em>, </td> |
327 |
</tr>
|
328 |
<tr>
|
329 |
<td class="paramkey"></td> |
330 |
<td></td> |
331 |
<td class="paramtype">unsigned char </td> |
332 |
<td class="paramname"> <em>green_led</em>, </td> |
333 |
</tr>
|
334 |
<tr>
|
335 |
<td class="paramkey"></td> |
336 |
<td></td> |
337 |
<td class="paramtype">unsigned char </td> |
338 |
<td class="paramname"> <em>blue_led</em></td><td> </td> |
339 |
</tr>
|
340 |
<tr>
|
341 |
<td></td> |
342 |
<td>)</td> |
343 |
<td></td><td></td><td width="100%"></td> |
344 |
</tr>
|
345 |
</table>
|
346 |
</div>
|
347 |
<div class="memdoc"> |
348 |
|
349 |
<p>
|
350 |
Set both orbs to a specified color. |
351 |
<p>
|
352 |
Set both orbs to the color specified. orb_init must be called before this function may be used.<p>
|
353 |
<dl compact><dt><b>Parameters:</b></dt><dd> |
354 |
<table border="0" cellspacing="2" cellpadding="0"> |
355 |
<tr><td valign="top"></td><td valign="top"><em>red_led</em> </td><td>the red component of the color </td></tr> |
356 |
<tr><td valign="top"></td><td valign="top"><em>green_led</em> </td><td>the green component of the color </td></tr> |
357 |
<tr><td valign="top"></td><td valign="top"><em>blue_led</em> </td><td>the blue component of the color</td></tr> |
358 |
</table>
|
359 |
</dl>
|
360 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs.">orb_init</a> </dd></dl> |
361 |
|
362 |
</div>
|
363 |
</div><p> |
364 |
<a class="anchor" name="g123d2880d20bf6d0bb387024c8f6da81"></a><!-- doxytag: member="lights.c::orb_set_color" ref="g123d2880d20bf6d0bb387024c8f6da81" args="(int col)" --> |
365 |
<div class="memitem"> |
366 |
<div class="memproto"> |
367 |
<table class="memname"> |
368 |
<tr>
|
369 |
<td class="memname">void orb_set_color </td> |
370 |
<td>(</td> |
371 |
<td class="paramtype">int </td> |
372 |
<td class="paramname"> <em>col</em> </td> |
373 |
<td> ) </td> |
374 |
<td width="100%"></td> |
375 |
</tr>
|
376 |
</table>
|
377 |
</div>
|
378 |
<div class="memdoc"> |
379 |
|
380 |
<p>
|
381 |
Set both orbs to a specified color. |
382 |
<p>
|
383 |
Set both orbs to the specified color. This function is intended to be used with the predefined colors. orb_init must be called before this function may be used.<p>
|
384 |
<dl compact><dt><b>Parameters:</b></dt><dd> |
385 |
<table border="0" cellspacing="2" cellpadding="0"> |
386 |
<tr><td valign="top"></td><td valign="top"><em>col</em> </td><td>the color to set the orbs to</td></tr> |
387 |
</table>
|
388 |
</dl>
|
389 |
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs.">orb_init</a> </dd></dl> |
390 |
|
391 |
</div>
|
392 |
</div><p> |
393 |
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Nov 8 23:15:40 2007 for libdragonfly by |
394 |
<a href="http://www.doxygen.org/index.html"> |
395 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
396 |
</body>
|
397 |
</html>
|