Project

General

Profile

Statistics
| Revision:

root / branches / wireless / docs / libdragonfly / html / group__orbs.html @ 1578

History | View | Annotate | Download (40.8 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>Colony: Orbs</title>
4
<link href="tabs.css" rel="stylesheet" type="text/css">
5
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
</head><body>
7
<!-- Generated by Doxygen 1.5.8 -->
8
<div class="navigation" id="top">
9
  <div class="tabs">
10
    <ul>
11
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
13
      <li><a href="modules.html"><span>Modules</span></a></li>
14
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
15
      <li><a href="files.html"><span>Files</span></a></li>
16
    </ul>
17
  </div>
18
</div>
19
<div class="contents">
20
<h1>Orbs</h1><table border="0" cellpadding="0" cellspacing="0">
21
<tr><td></td></tr>
22
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
23
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g8d23feea868a983c8c2b661e1e16972f"></a><!-- doxytag: member="orbs::RED" ref="g8d23feea868a983c8c2b661e1e16972f" args="" -->
24
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g8d23feea868a983c8c2b661e1e16972f">RED</a>&nbsp;&nbsp;&nbsp;0xE0</td></tr>
25

    
26
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Red. <br></td></tr>
27
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc5b6e19bf06822021f35602c59658de3"></a><!-- doxytag: member="orbs::ORANGE" ref="gc5b6e19bf06822021f35602c59658de3" args="" -->
28
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gc5b6e19bf06822021f35602c59658de3">ORANGE</a>&nbsp;&nbsp;&nbsp;0xE4</td></tr>
29

    
30
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Orange. <br></td></tr>
31
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gbf681265909adf3d3e8116c93c0ba179"></a><!-- doxytag: member="orbs::YELLOW" ref="gbf681265909adf3d3e8116c93c0ba179" args="" -->
32
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gbf681265909adf3d3e8116c93c0ba179">YELLOW</a>&nbsp;&nbsp;&nbsp;0xE8</td></tr>
33

    
34
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Yellow. <br></td></tr>
35
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g46019a1f2c10603a54b6cbb19cbf3c21"></a><!-- doxytag: member="orbs::LIME" ref="g46019a1f2c10603a54b6cbb19cbf3c21" args="" -->
36
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g46019a1f2c10603a54b6cbb19cbf3c21">LIME</a>&nbsp;&nbsp;&nbsp;0x68</td></tr>
37

    
38
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lime. <br></td></tr>
39
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gcfbc006ea433ad708fdee3e82996e721"></a><!-- doxytag: member="orbs::GREEN" ref="gcfbc006ea433ad708fdee3e82996e721" args="" -->
40
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gcfbc006ea433ad708fdee3e82996e721">GREEN</a>&nbsp;&nbsp;&nbsp;0x1C</td></tr>
41

    
42
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Green. <br></td></tr>
43
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gd243f93c16bc4c1d3e0a13b84421d760"></a><!-- doxytag: member="orbs::CYAN" ref="gd243f93c16bc4c1d3e0a13b84421d760" args="" -->
44
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gd243f93c16bc4c1d3e0a13b84421d760">CYAN</a>&nbsp;&nbsp;&nbsp;0x1F</td></tr>
45

    
46
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Cyan. <br></td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g79d10e672abb49ad63eeaa8aaef57c38"></a><!-- doxytag: member="orbs::BLUE" ref="g79d10e672abb49ad63eeaa8aaef57c38" args="" -->
48
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g79d10e672abb49ad63eeaa8aaef57c38">BLUE</a>&nbsp;&nbsp;&nbsp;0x03</td></tr>
49

    
50
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Blue. <br></td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gda419fe3b48fcf19daed7cc57ccf1174"></a><!-- doxytag: member="orbs::PINK" ref="gda419fe3b48fcf19daed7cc57ccf1174" args="" -->
52
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gda419fe3b48fcf19daed7cc57ccf1174">PINK</a>&nbsp;&nbsp;&nbsp;0xA6</td></tr>
53

    
54
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pink. <br></td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g0bb0b009e7a7390473ace4d98bd843c0"></a><!-- doxytag: member="orbs::PURPLE" ref="g0bb0b009e7a7390473ace4d98bd843c0" args="" -->
56
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g0bb0b009e7a7390473ace4d98bd843c0">PURPLE</a>&nbsp;&nbsp;&nbsp;0x41</td></tr>
57

    
58
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Purple. <br></td></tr>
59
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g6f699060902f800f12aaae150f3a708e"></a><!-- doxytag: member="orbs::MAGENTA" ref="g6f699060902f800f12aaae150f3a708e" args="" -->
60
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g6f699060902f800f12aaae150f3a708e">MAGENTA</a>&nbsp;&nbsp;&nbsp;0xE3</td></tr>
61

    
62
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Magenta. <br></td></tr>
63
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g87b537f5fa5c109d3c05c13d6b18f382"></a><!-- doxytag: member="orbs::WHITE" ref="g87b537f5fa5c109d3c05c13d6b18f382" args="" -->
64
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>&nbsp;&nbsp;&nbsp;0xFE</td></tr>
65

    
66
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">White. <br></td></tr>
67
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gcf2f6da92d895ef5e594223f1e39e4b1"></a><!-- doxytag: member="orbs::ORB_OFF" ref="gcf2f6da92d895ef5e594223f1e39e4b1" args="" -->
68
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gcf2f6da92d895ef5e594223f1e39e4b1">ORB_OFF</a>&nbsp;&nbsp;&nbsp;0x00</td></tr>
69

    
70
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Turn the orb off. <br></td></tr>
71
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc443bd65dba694ea9731f3ea455831a8"></a><!-- doxytag: member="orbs::orb_mode_pwm" ref="gc443bd65dba694ea9731f3ea455831a8" args="" -->
72
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gc443bd65dba694ea9731f3ea455831a8">orb_mode_pwm</a>&nbsp;&nbsp;&nbsp;0</td></tr>
73

    
74
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">PWM mode. <br></td></tr>
75
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gf6cc675aa67ca9348717db3e53f18ae9"></a><!-- doxytag: member="orbs::orb_mode_binary" ref="gf6cc675aa67ca9348717db3e53f18ae9" args="" -->
76
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gf6cc675aa67ca9348717db3e53f18ae9">orb_mode_binary</a>&nbsp;&nbsp;&nbsp;1</td></tr>
77

    
78
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Binary mode. <br></td></tr>
79
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
80
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#ge1444a97f794787d7ffaa5ec12e2a1e2">orb_mode_t</a></td></tr>
81

    
82
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
83
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9">orb_init</a> (void)</td></tr>
84

    
85
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enables the orbs in default mode.  <a href="#g13069271f9d636674e9b4a8a355099b9"></a><br></td></tr>
86
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g55a2b60caf9fe91346bed89c7bba73b7">orb_init_binary</a> (void)</td></tr>
87

    
88
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enables the orbs in binary mode.  <a href="#g55a2b60caf9fe91346bed89c7bba73b7"></a><br></td></tr>
89
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gbb9bc432db2639616a7e8b3211544891">orb_init_pwm</a> (void)</td></tr>
90

    
91
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enables the orbs in PWM mode.  <a href="#gbb9bc432db2639616a7e8b3211544891"></a><br></td></tr>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga1d0fbfe351097e16652a658af5c8955"></a><!-- doxytag: member="orbs::orb_set_mode" ref="ga1d0fbfe351097e16652a658af5c8955" args="(orb_mode_t mode)" -->
93
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#ga1d0fbfe351097e16652a658af5c8955">orb_set_mode</a> (<a class="el" href="group__orbs.html#ge1444a97f794787d7ffaa5ec12e2a1e2">orb_mode_t</a> mode)</td></tr>
94

    
95
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Switches the orbs to the specified mode. <br></td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#gf4effc092e3f85d937cea0ff72a003bf">orb_disable_timer</a> (void)</td></tr>
97

    
98
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Disables the orb timer, but does not change the mode.  <a href="#gf4effc092e3f85d937cea0ff72a003bf"></a><br></td></tr>
99
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#ge626892624d9bd87fa7dcd0ebd6d19f3">orb_enable_timer</a> (void)</td></tr>
100

    
101
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enables the orb timer, but does not change the mode.  <a href="#ge626892624d9bd87fa7dcd0ebd6d19f3"></a><br></td></tr>
102
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#ge066e81a39023cf8a36efd432bb9a4ff">orb_n_set</a> (uint8_t num, uint8_t red, uint8_t green, uint8_t blue)</td></tr>
103

    
104
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set the specified orb to a specified color  <a href="#ge066e81a39023cf8a36efd432bb9a4ff"></a><br></td></tr>
105
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g10dd6277826cd4c9305e48029c9011a4">orb_set</a> (uint8_t red, uint8_t green, uint8_t blue)</td></tr>
106

    
107
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set both orbs to a specified color.  <a href="#g10dd6277826cd4c9305e48029c9011a4"></a><br></td></tr>
108
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g06c1b846b943bd327a2bc9f37b926497">orb1_set</a> (uint8_t red_led, uint8_t green_led, uint8_t blue_led)</td></tr>
109

    
110
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set orb1 to a specified color.  <a href="#g06c1b846b943bd327a2bc9f37b926497"></a><br></td></tr>
111
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g618af3d39cb8cd954248da295f7f234c">orb2_set</a> (uint8_t red_led, uint8_t green_led, uint8_t blue_led)</td></tr>
112

    
113
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set orb2 to a specified color.  <a href="#g618af3d39cb8cd954248da295f7f234c"></a><br></td></tr>
114
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g5ebe8d5597e2519d82486ce0a88906cc">orbs_set</a> (uint8_t red1, uint8_t green1, uint8_t blue1, uint8_t red2, uint8_t green2, uint8_t blue2)</td></tr>
115

    
116
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g9bbced65e813e0937b7251a86853117f">orb_n_set_color</a> (uint8_t num, uint8_t col)</td></tr>
117

    
118
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set the specified orb to the specified color  <a href="#g9bbced65e813e0937b7251a86853117f"></a><br></td></tr>
119
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g0dede06855e46c8b8abdbce5779917ba">orb1_set_color</a> (uint8_t col)</td></tr>
120

    
121
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set orb1 to a specified color.  <a href="#g0dede06855e46c8b8abdbce5779917ba"></a><br></td></tr>
122
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g1eb5f3accec23e5a2ea137e95f5070d6">orb2_set_color</a> (uint8_t col)</td></tr>
123

    
124
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set orb2 to a specified color.  <a href="#g1eb5f3accec23e5a2ea137e95f5070d6"></a><br></td></tr>
125
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g39224c46d5ed891d16e08239c959a8a8">orbs_set_color</a> (uint8_t col1, uint8_t col2)</td></tr>
126

    
127
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set the orbs to specified colors  <a href="#g39224c46d5ed891d16e08239c959a8a8"></a><br></td></tr>
128
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__orbs.html#g1710247e5331a3cb6076354a70e095e1">orb_set_color</a> (uint8_t col)</td></tr>
129

    
130
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set both orbs to a specified color.  <a href="#g1710247e5331a3cb6076354a70e095e1"></a><br></td></tr>
131
</table>
132
<hr><a name="_details"></a><h2>Detailed Description</h2>
133
Quick start: call orb_init_pwm or orb_init_binary, depending on which mode you want to use. Call orb*set or orb*set_color to set the orbs.<p>
134
The orbs have two modes of operation: PWM mode and binary mode. In PWM mode, a pwm signal is generated by a hardware timer and the orbs can be set to a value of 0 through 255. In binary mode, the orbs can only be turned on or off and a value of 0 means "off" and any other value means "on". The mode can be chosen on initialization and can be changed at runtime using the orb_set_mode function.<p>
135
Operation (PWM mode): On timer overflow, all LEDs with a value&gt;0 are turned on and the output compare value for the first LED is loaded. On compare match, the corresponding LED is turned off and the next output compare value is loaded. All masks are precomputed and sorted by time when setting the values.<p>
136
The data structure (pwm_t) containing the PWM times and masks is triple buffered. This is because the buffer the ISR is reading from may only be modified on timer overflow before the next PWM sequence is started, because otherwise the next OCR value might be sed to a value smaller than the current timer value, resulting in the remaining channels not being turned off in that PWM period (flash to on). When using two buffers, the page flip can only occur on a timer overflow for the same reason. So after writing a buffer and marking it for page flip, neither of the buffers could be modified because the front buffer is read by the ISR and the back buffer could be switched at any time. So the calling thread would have to be delayed by up to one full PWM period (8ms in the current implementation, but 20ms-50ms would be a reasonable value to expect here). To avoid this, triple buffering is used.<p>
137
The code for applying the orbs is fairly optimized. See the apply_orbs function for some time measurements and further nodes.<p>
138
The PWM frequency is 120Hz (8ms period time). The next lower frequency (determined by the prescaler) is 30 Hz which is too slow (orbs flicker).<p>
139
The orbs code is thread safe, which means that the functions may be called from another interrupt handler. If there are multiple concurrent calls to the orb*set* functions, one of them is ignored and the orbs are never left in an inconsistent state. For example, if the orbs are set to green by the main thread and to red by an interrupt handler, the resulting color will be either red or green, but never yellow. Thread safety is achieved by grabbing a lock at the beginning of all functions that modify the orb code and releasing the lock at the end. If the lock is already taken, the function just returns doing nothing.<p>
140
Some performance measurements:<ul>
141
<li>Time for setting new orb values (PWM mode): 35us-72us (depending on the degree to which the array is already in the correct order)</li><li>Time for setting new orb values (binary mode): 5.5us</li></ul>
142
<p>
143
<ul>
144
<li>Interrupt time (PWM mode only): 8us (overflow) 10us (output compare) 6us (last output compare) 30us (output compare, all value equal)</li></ul>
145
<p>
146
<ul>
147
<li>Maximum total interrupt time per period: 64us</li><li>Maximum CPU usage for interrupts (PWM mode only): &lt;0.8%</li></ul>
148
<p>
149
<ul>
150
<li>Maximum contiguous synchronized block: 30us (output compare interrupt, all values equal)</li></ul>
151
<p>
152
There are some potential optimizations left. See the source code for more information.<p>
153
A note on robustness: if the output compare interrupt is disabled for too long, either due to a long ISR or a long synchronized code block, the orbs will flicker to brighter values for being turned off too late. With software PWM, there's nothing at all to be done about that. The problem can be alleviated by using a lower PWM frequency, but then the orbs will start flickering all the time due to the low update frequency. Some measurements: with 100us synchronized blocks, the flickering is accepptably low. Longer synchronized blocks mean more flickering. At 1ms synchronized blocks, the flickering is quite bad, especially for low orb values. Note that orb value 0 never flickers at all because the corresponding channels are not turned on at all. Test code (note the _delay_us restrictions!) orb_set (1,1,1); while (1) { SYNC { for (uint8_t m=0; m&lt;10; ++m) { _delay_us(10); } } } <hr><h2>Typedef Documentation</h2>
154
<a class="anchor" name="ge1444a97f794787d7ffaa5ec12e2a1e2"></a><!-- doxytag: member="lights.h::orb_mode_t" ref="ge1444a97f794787d7ffaa5ec12e2a1e2" args="" -->
155
<div class="memitem">
156
<div class="memproto">
157
      <table class="memname">
158
        <tr>
159
          <td class="memname">typedef uint8_t <a class="el" href="group__orbs.html#ge1444a97f794787d7ffaa5ec12e2a1e2">orb_mode_t</a>          </td>
160
        </tr>
161
      </table>
162
</div>
163
<div class="memdoc">
164

    
165
<p>
166
Specification of the orb mode 
167
</div>
168
</div><p>
169
<hr><h2>Function Documentation</h2>
170
<a class="anchor" name="g06c1b846b943bd327a2bc9f37b926497"></a><!-- doxytag: member="lights.h::orb1_set" ref="g06c1b846b943bd327a2bc9f37b926497" args="(uint8_t red_led, uint8_t green_led, uint8_t blue_led)" -->
171
<div class="memitem">
172
<div class="memproto">
173
      <table class="memname">
174
        <tr>
175
          <td class="memname">void orb1_set           </td>
176
          <td>(</td>
177
          <td class="paramtype">uint8_t&nbsp;</td>
178
          <td class="paramname"> <em>red</em>, </td>
179
        </tr>
180
        <tr>
181
          <td class="paramkey"></td>
182
          <td></td>
183
          <td class="paramtype">uint8_t&nbsp;</td>
184
          <td class="paramname"> <em>green</em>, </td>
185
        </tr>
186
        <tr>
187
          <td class="paramkey"></td>
188
          <td></td>
189
          <td class="paramtype">uint8_t&nbsp;</td>
190
          <td class="paramname"> <em>blue</em></td><td>&nbsp;</td>
191
        </tr>
192
        <tr>
193
          <td></td>
194
          <td>)</td>
195
          <td></td><td></td><td></td>
196
        </tr>
197
      </table>
198
</div>
199
<div class="memdoc">
200

    
201
<p>
202
Set orb1 to a specified color. 
203
<p>
204
Set orb1 to the color specified. The orbs must be initialized before this function may be used. Note that, when setting both orbs, using orbs_set is faster then setting the orbs individually because the values are only sorted once.<p>
205
<dl compact><dt><b>Parameters:</b></dt><dd>
206
  <table border="0" cellspacing="2" cellpadding="0">
207
    <tr><td valign="top"></td><td valign="top"><em>red</em>&nbsp;</td><td>the red component of the color </td></tr>
208
    <tr><td valign="top"></td><td valign="top"><em>green</em>&nbsp;</td><td>the green component of the color </td></tr>
209
    <tr><td valign="top"></td><td valign="top"><em>blue</em>&nbsp;</td><td>the blue component of the color</td></tr>
210
  </table>
211
</dl>
212
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs in default mode.">orb_init</a> </dd></dl>
213

    
214
</div>
215
</div><p>
216
<a class="anchor" name="g0dede06855e46c8b8abdbce5779917ba"></a><!-- doxytag: member="lights.h::orb1_set_color" ref="g0dede06855e46c8b8abdbce5779917ba" args="(uint8_t col)" -->
217
<div class="memitem">
218
<div class="memproto">
219
      <table class="memname">
220
        <tr>
221
          <td class="memname">void orb1_set_color           </td>
222
          <td>(</td>
223
          <td class="paramtype">uint8_t&nbsp;</td>
224
          <td class="paramname"> <em>col</em>          </td>
225
          <td>&nbsp;)&nbsp;</td>
226
          <td></td>
227
        </tr>
228
      </table>
229
</div>
230
<div class="memdoc">
231

    
232
<p>
233
Set orb1 to a specified color. 
234
<p>
235
Set orb1 to the specified color. This function is intended to be used with the predefined colors.<p>
236
<dl compact><dt><b>Parameters:</b></dt><dd>
237
  <table border="0" cellspacing="2" cellpadding="0">
238
    <tr><td valign="top"></td><td valign="top"><em>col</em>&nbsp;</td><td>the color to set the orbs to </td></tr>
239
  </table>
240
</dl>
241

    
242
</div>
243
</div><p>
244
<a class="anchor" name="g618af3d39cb8cd954248da295f7f234c"></a><!-- doxytag: member="lights.h::orb2_set" ref="g618af3d39cb8cd954248da295f7f234c" args="(uint8_t red_led, uint8_t green_led, uint8_t blue_led)" -->
245
<div class="memitem">
246
<div class="memproto">
247
      <table class="memname">
248
        <tr>
249
          <td class="memname">void orb2_set           </td>
250
          <td>(</td>
251
          <td class="paramtype">uint8_t&nbsp;</td>
252
          <td class="paramname"> <em>red</em>, </td>
253
        </tr>
254
        <tr>
255
          <td class="paramkey"></td>
256
          <td></td>
257
          <td class="paramtype">uint8_t&nbsp;</td>
258
          <td class="paramname"> <em>green</em>, </td>
259
        </tr>
260
        <tr>
261
          <td class="paramkey"></td>
262
          <td></td>
263
          <td class="paramtype">uint8_t&nbsp;</td>
264
          <td class="paramname"> <em>blue</em></td><td>&nbsp;</td>
265
        </tr>
266
        <tr>
267
          <td></td>
268
          <td>)</td>
269
          <td></td><td></td><td></td>
270
        </tr>
271
      </table>
272
</div>
273
<div class="memdoc">
274

    
275
<p>
276
Set orb2 to a specified color. 
277
<p>
278
Set orb2 to the color specified. The orbs must be initialized before this function may be used. Note that, when setting both orbs, using orbs_set is faster then setting the orbs individually because the values are only sorted once.<p>
279
<dl compact><dt><b>Parameters:</b></dt><dd>
280
  <table border="0" cellspacing="2" cellpadding="0">
281
    <tr><td valign="top"></td><td valign="top"><em>red_led</em>&nbsp;</td><td>the red component of the color </td></tr>
282
    <tr><td valign="top"></td><td valign="top"><em>green_led</em>&nbsp;</td><td>the green component of the color </td></tr>
283
    <tr><td valign="top"></td><td valign="top"><em>blue_led</em>&nbsp;</td><td>the blue component of the color</td></tr>
284
  </table>
285
</dl>
286
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs in default mode.">orb_init</a> </dd></dl>
287

    
288
</div>
289
</div><p>
290
<a class="anchor" name="g1eb5f3accec23e5a2ea137e95f5070d6"></a><!-- doxytag: member="lights.h::orb2_set_color" ref="g1eb5f3accec23e5a2ea137e95f5070d6" args="(uint8_t col)" -->
291
<div class="memitem">
292
<div class="memproto">
293
      <table class="memname">
294
        <tr>
295
          <td class="memname">void orb2_set_color           </td>
296
          <td>(</td>
297
          <td class="paramtype">uint8_t&nbsp;</td>
298
          <td class="paramname"> <em>col</em>          </td>
299
          <td>&nbsp;)&nbsp;</td>
300
          <td></td>
301
        </tr>
302
      </table>
303
</div>
304
<div class="memdoc">
305

    
306
<p>
307
Set orb2 to a specified color. 
308
<p>
309
Set orb2 to the specified color. This function is intended to be used with the predefined colors.<p>
310
<dl compact><dt><b>Parameters:</b></dt><dd>
311
  <table border="0" cellspacing="2" cellpadding="0">
312
    <tr><td valign="top"></td><td valign="top"><em>col</em>&nbsp;</td><td>the color to set the orbs to </td></tr>
313
  </table>
314
</dl>
315

    
316
</div>
317
</div><p>
318
<a class="anchor" name="gf4effc092e3f85d937cea0ff72a003bf"></a><!-- doxytag: member="lights.h::orb_disable_timer" ref="gf4effc092e3f85d937cea0ff72a003bf" args="(void)" -->
319
<div class="memitem">
320
<div class="memproto">
321
      <table class="memname">
322
        <tr>
323
          <td class="memname">void orb_disable_timer           </td>
324
          <td>(</td>
325
          <td class="paramtype">void&nbsp;</td>
326
          <td class="paramname">          </td>
327
          <td>&nbsp;)&nbsp;</td>
328
          <td></td>
329
        </tr>
330
      </table>
331
</div>
332
<div class="memdoc">
333

    
334
<p>
335
Disables the orb timer, but does not change the mode. 
336
<p>
337
Disables the orb timer. Note that you usually don't want to use this function directly. Instead, use orb_set_mode. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#ga1d0fbfe351097e16652a658af5c8955" title="Switches the orbs to the specified mode.">orb_set_mode</a> </dd></dl>
338

    
339
</div>
340
</div><p>
341
<a class="anchor" name="ge626892624d9bd87fa7dcd0ebd6d19f3"></a><!-- doxytag: member="lights.h::orb_enable_timer" ref="ge626892624d9bd87fa7dcd0ebd6d19f3" args="(void)" -->
342
<div class="memitem">
343
<div class="memproto">
344
      <table class="memname">
345
        <tr>
346
          <td class="memname">void orb_enable_timer           </td>
347
          <td>(</td>
348
          <td class="paramtype">void&nbsp;</td>
349
          <td class="paramname">          </td>
350
          <td>&nbsp;)&nbsp;</td>
351
          <td></td>
352
        </tr>
353
      </table>
354
</div>
355
<div class="memdoc">
356

    
357
<p>
358
Enables the orb timer, but does not change the mode. 
359
<p>
360
Enables the orb timer. Note that you usually don't want to use this function directly. Instead, use orb_set_mode. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#ga1d0fbfe351097e16652a658af5c8955" title="Switches the orbs to the specified mode.">orb_set_mode</a> </dd></dl>
361

    
362
</div>
363
</div><p>
364
<a class="anchor" name="g13069271f9d636674e9b4a8a355099b9"></a><!-- doxytag: member="lights.h::orb_init" ref="g13069271f9d636674e9b4a8a355099b9" args="(void)" -->
365
<div class="memitem">
366
<div class="memproto">
367
      <table class="memname">
368
        <tr>
369
          <td class="memname">void orb_init           </td>
370
          <td>(</td>
371
          <td class="paramtype">void&nbsp;</td>
372
          <td class="paramname">          </td>
373
          <td>&nbsp;)&nbsp;</td>
374
          <td></td>
375
        </tr>
376
      </table>
377
</div>
378
<div class="memdoc">
379

    
380
<p>
381
Enables the orbs in default mode. 
382
<p>
383
Initializes the orbs in default mode. One of the orb_init* functions must be called before the orbs can be used. Use the orb_init_binary or orb_init_pwm function if you want one specific mode.<p>
384
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#gbb9bc432db2639616a7e8b3211544891" title="Enables the orbs in PWM mode.">orb_init_pwm</a> <p>
385
<a class="el" href="group__orbs.html#g55a2b60caf9fe91346bed89c7bba73b7" title="Enables the orbs in binary mode.">orb_init_binary</a> </dd></dl>
386

    
387
</div>
388
</div><p>
389
<a class="anchor" name="g55a2b60caf9fe91346bed89c7bba73b7"></a><!-- doxytag: member="lights.h::orb_init_binary" ref="g55a2b60caf9fe91346bed89c7bba73b7" args="(void)" -->
390
<div class="memitem">
391
<div class="memproto">
392
      <table class="memname">
393
        <tr>
394
          <td class="memname">void orb_init_binary           </td>
395
          <td>(</td>
396
          <td class="paramtype">void&nbsp;</td>
397
          <td class="paramname">          </td>
398
          <td>&nbsp;)&nbsp;</td>
399
          <td></td>
400
        </tr>
401
      </table>
402
</div>
403
<div class="memdoc">
404

    
405
<p>
406
Enables the orbs in binary mode. 
407
<p>
408
Initializes the orbs in PWM mode. One of the orb_init* functions must be called before the orbs can be used.<p>
409
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#gbb9bc432db2639616a7e8b3211544891" title="Enables the orbs in PWM mode.">orb_init_pwm</a> </dd></dl>
410

    
411
</div>
412
</div><p>
413
<a class="anchor" name="gbb9bc432db2639616a7e8b3211544891"></a><!-- doxytag: member="lights.h::orb_init_pwm" ref="gbb9bc432db2639616a7e8b3211544891" args="(void)" -->
414
<div class="memitem">
415
<div class="memproto">
416
      <table class="memname">
417
        <tr>
418
          <td class="memname">void orb_init_pwm           </td>
419
          <td>(</td>
420
          <td class="paramtype">void&nbsp;</td>
421
          <td class="paramname">          </td>
422
          <td>&nbsp;)&nbsp;</td>
423
          <td></td>
424
        </tr>
425
      </table>
426
</div>
427
<div class="memdoc">
428

    
429
<p>
430
Enables the orbs in PWM mode. 
431
<p>
432
Initializes the orbs in PWM mode. One of the orb_init* functions must be called before the orbs can be used.<p>
433
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g55a2b60caf9fe91346bed89c7bba73b7" title="Enables the orbs in binary mode.">orb_init_binary</a> </dd></dl>
434

    
435
</div>
436
</div><p>
437
<a class="anchor" name="ge066e81a39023cf8a36efd432bb9a4ff"></a><!-- doxytag: member="lights.h::orb_n_set" ref="ge066e81a39023cf8a36efd432bb9a4ff" args="(uint8_t num, uint8_t red, uint8_t green, uint8_t blue)" -->
438
<div class="memitem">
439
<div class="memproto">
440
      <table class="memname">
441
        <tr>
442
          <td class="memname">void orb_n_set           </td>
443
          <td>(</td>
444
          <td class="paramtype">uint8_t&nbsp;</td>
445
          <td class="paramname"> <em>num</em>, </td>
446
        </tr>
447
        <tr>
448
          <td class="paramkey"></td>
449
          <td></td>
450
          <td class="paramtype">uint8_t&nbsp;</td>
451
          <td class="paramname"> <em>red</em>, </td>
452
        </tr>
453
        <tr>
454
          <td class="paramkey"></td>
455
          <td></td>
456
          <td class="paramtype">uint8_t&nbsp;</td>
457
          <td class="paramname"> <em>green</em>, </td>
458
        </tr>
459
        <tr>
460
          <td class="paramkey"></td>
461
          <td></td>
462
          <td class="paramtype">uint8_t&nbsp;</td>
463
          <td class="paramname"> <em>blue</em></td><td>&nbsp;</td>
464
        </tr>
465
        <tr>
466
          <td></td>
467
          <td>)</td>
468
          <td></td><td></td><td></td>
469
        </tr>
470
      </table>
471
</div>
472
<div class="memdoc">
473

    
474
<p>
475
set the specified orb to a specified color 
476
<p>
477
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>This function indexes from 0 instead of 1 </dd></dl>
478
<p>
479
Sets the specified orb to the specified color. The orbs must be initialized before this function may be used. Note that, when setting both orbs, using orbs_set is faster then setting the orbs individually because the values are only sorted once.<p>
480
<dl compact><dt><b>Parameters:</b></dt><dd>
481
  <table border="0" cellspacing="2" cellpadding="0">
482
    <tr><td valign="top"></td><td valign="top"><em>num</em>&nbsp;</td><td>the number of the orb to set (0 or 1) </td></tr>
483
    <tr><td valign="top"></td><td valign="top"><em>red</em>&nbsp;</td><td>the red value for the specified orb </td></tr>
484
    <tr><td valign="top"></td><td valign="top"><em>green</em>&nbsp;</td><td>the green value for the specified orb </td></tr>
485
    <tr><td valign="top"></td><td valign="top"><em>blue</em>&nbsp;</td><td>the blue value for the specified orb </td></tr>
486
  </table>
487
</dl>
488
<dl class="see" compact><dt><b>See also:</b></dt><dd></dd></dl>
489

    
490
</div>
491
</div><p>
492
<a class="anchor" name="g9bbced65e813e0937b7251a86853117f"></a><!-- doxytag: member="lights.h::orb_n_set_color" ref="g9bbced65e813e0937b7251a86853117f" args="(uint8_t num, uint8_t col)" -->
493
<div class="memitem">
494
<div class="memproto">
495
      <table class="memname">
496
        <tr>
497
          <td class="memname">void orb_n_set_color           </td>
498
          <td>(</td>
499
          <td class="paramtype">uint8_t&nbsp;</td>
500
          <td class="paramname"> <em>num</em>, </td>
501
        </tr>
502
        <tr>
503
          <td class="paramkey"></td>
504
          <td></td>
505
          <td class="paramtype">uint8_t&nbsp;</td>
506
          <td class="paramname"> <em>col</em></td><td>&nbsp;</td>
507
        </tr>
508
        <tr>
509
          <td></td>
510
          <td>)</td>
511
          <td></td><td></td><td></td>
512
        </tr>
513
      </table>
514
</div>
515
<div class="memdoc">
516

    
517
<p>
518
set the specified orb to the specified color 
519
<p>
520
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>This function indexes from 0 instead of 1 </dd></dl>
521
<p>
522
Set the specified orb to the specified color. This function is intended to be used with the predefined colors.<p>
523
<dl compact><dt><b>Parameters:</b></dt><dd>
524
  <table border="0" cellspacing="2" cellpadding="0">
525
    <tr><td valign="top"></td><td valign="top"><em>num</em>&nbsp;</td><td>the number of the orb to set (0 or 1) </td></tr>
526
    <tr><td valign="top"></td><td valign="top"><em>col</em>&nbsp;</td><td>the color to set the orbs to </td></tr>
527
  </table>
528
</dl>
529

    
530
</div>
531
</div><p>
532
<a class="anchor" name="g10dd6277826cd4c9305e48029c9011a4"></a><!-- doxytag: member="lights.h::orb_set" ref="g10dd6277826cd4c9305e48029c9011a4" args="(uint8_t red, uint8_t green, uint8_t blue)" -->
533
<div class="memitem">
534
<div class="memproto">
535
      <table class="memname">
536
        <tr>
537
          <td class="memname">void orb_set           </td>
538
          <td>(</td>
539
          <td class="paramtype">uint8_t&nbsp;</td>
540
          <td class="paramname"> <em>red</em>, </td>
541
        </tr>
542
        <tr>
543
          <td class="paramkey"></td>
544
          <td></td>
545
          <td class="paramtype">uint8_t&nbsp;</td>
546
          <td class="paramname"> <em>green</em>, </td>
547
        </tr>
548
        <tr>
549
          <td class="paramkey"></td>
550
          <td></td>
551
          <td class="paramtype">uint8_t&nbsp;</td>
552
          <td class="paramname"> <em>blue</em></td><td>&nbsp;</td>
553
        </tr>
554
        <tr>
555
          <td></td>
556
          <td>)</td>
557
          <td></td><td></td><td></td>
558
        </tr>
559
      </table>
560
</div>
561
<div class="memdoc">
562

    
563
<p>
564
Set both orbs to a specified color. 
565
<p>
566
Set both orbs to the color specified. The orbs must be initialized before this function may be used.<p>
567
<dl compact><dt><b>Parameters:</b></dt><dd>
568
  <table border="0" cellspacing="2" cellpadding="0">
569
    <tr><td valign="top"></td><td valign="top"><em>red_led</em>&nbsp;</td><td>the red component of the color </td></tr>
570
    <tr><td valign="top"></td><td valign="top"><em>green_led</em>&nbsp;</td><td>the green component of the color </td></tr>
571
    <tr><td valign="top"></td><td valign="top"><em>blue_led</em>&nbsp;</td><td>the blue component of the color</td></tr>
572
  </table>
573
</dl>
574
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g13069271f9d636674e9b4a8a355099b9" title="Enables the orbs in default mode.">orb_init</a>, <a class="el" href="group__orbs.html#g06c1b846b943bd327a2bc9f37b926497" title="Set orb1 to a specified color.">orb1_set</a>, <a class="el" href="group__orbs.html#g618af3d39cb8cd954248da295f7f234c" title="Set orb2 to a specified color.">orb2_set</a> </dd></dl>
575

    
576
</div>
577
</div><p>
578
<a class="anchor" name="g1710247e5331a3cb6076354a70e095e1"></a><!-- doxytag: member="lights.h::orb_set_color" ref="g1710247e5331a3cb6076354a70e095e1" args="(uint8_t col)" -->
579
<div class="memitem">
580
<div class="memproto">
581
      <table class="memname">
582
        <tr>
583
          <td class="memname">void orb_set_color           </td>
584
          <td>(</td>
585
          <td class="paramtype">uint8_t&nbsp;</td>
586
          <td class="paramname"> <em>col</em>          </td>
587
          <td>&nbsp;)&nbsp;</td>
588
          <td></td>
589
        </tr>
590
      </table>
591
</div>
592
<div class="memdoc">
593

    
594
<p>
595
Set both orbs to a specified color. 
596
<p>
597
Set both orbs to the specified color. This function is intended to be used with the predefined colors.<p>
598
<dl compact><dt><b>Parameters:</b></dt><dd>
599
  <table border="0" cellspacing="2" cellpadding="0">
600
    <tr><td valign="top"></td><td valign="top"><em>col</em>&nbsp;</td><td>the color to set the orbs to </td></tr>
601
  </table>
602
</dl>
603

    
604
</div>
605
</div><p>
606
<a class="anchor" name="g5ebe8d5597e2519d82486ce0a88906cc"></a><!-- doxytag: member="lights.h::orbs_set" ref="g5ebe8d5597e2519d82486ce0a88906cc" args="(uint8_t red1, uint8_t green1, uint8_t blue1, uint8_t red2, uint8_t green2, uint8_t blue2)" -->
607
<div class="memitem">
608
<div class="memproto">
609
      <table class="memname">
610
        <tr>
611
          <td class="memname">void orbs_set           </td>
612
          <td>(</td>
613
          <td class="paramtype">uint8_t&nbsp;</td>
614
          <td class="paramname"> <em>red1</em>, </td>
615
        </tr>
616
        <tr>
617
          <td class="paramkey"></td>
618
          <td></td>
619
          <td class="paramtype">uint8_t&nbsp;</td>
620
          <td class="paramname"> <em>green1</em>, </td>
621
        </tr>
622
        <tr>
623
          <td class="paramkey"></td>
624
          <td></td>
625
          <td class="paramtype">uint8_t&nbsp;</td>
626
          <td class="paramname"> <em>blue1</em>, </td>
627
        </tr>
628
        <tr>
629
          <td class="paramkey"></td>
630
          <td></td>
631
          <td class="paramtype">uint8_t&nbsp;</td>
632
          <td class="paramname"> <em>red2</em>, </td>
633
        </tr>
634
        <tr>
635
          <td class="paramkey"></td>
636
          <td></td>
637
          <td class="paramtype">uint8_t&nbsp;</td>
638
          <td class="paramname"> <em>green2</em>, </td>
639
        </tr>
640
        <tr>
641
          <td class="paramkey"></td>
642
          <td></td>
643
          <td class="paramtype">uint8_t&nbsp;</td>
644
          <td class="paramname"> <em>blue2</em></td><td>&nbsp;</td>
645
        </tr>
646
        <tr>
647
          <td></td>
648
          <td>)</td>
649
          <td></td><td></td><td></td>
650
        </tr>
651
      </table>
652
</div>
653
<div class="memdoc">
654

    
655
<p>
656
Set the orbs to the respective values. The orbs must be initialized before this function may be used. Note that, when setting both orbs, this function is faster than calling orb1_set and orb2_set (or orb_n_set) because the values are only sorted once.<p>
657
<dl compact><dt><b>Parameters:</b></dt><dd>
658
  <table border="0" cellspacing="2" cellpadding="0">
659
    <tr><td valign="top"></td><td valign="top"><em>red1</em>&nbsp;</td><td></td></tr>
660
    <tr><td valign="top"></td><td valign="top"><em>green1</em>&nbsp;</td><td></td></tr>
661
    <tr><td valign="top"></td><td valign="top"><em>blue1</em>&nbsp;</td><td></td></tr>
662
    <tr><td valign="top"></td><td valign="top"><em>red2</em>&nbsp;</td><td></td></tr>
663
    <tr><td valign="top"></td><td valign="top"><em>green2</em>&nbsp;</td><td></td></tr>
664
    <tr><td valign="top"></td><td valign="top"><em>blue2</em>&nbsp;</td><td></td></tr>
665
  </table>
666
</dl>
667
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__orbs.html#g06c1b846b943bd327a2bc9f37b926497" title="Set orb1 to a specified color.">orb1_set</a> <p>
668
<a class="el" href="group__orbs.html#g618af3d39cb8cd954248da295f7f234c" title="Set orb2 to a specified color.">orb2_set</a> <p>
669
<a class="el" href="group__orbs.html#ge066e81a39023cf8a36efd432bb9a4ff" title="set the specified orb to a specified color">orb_n_set</a> </dd></dl>
670

    
671
</div>
672
</div><p>
673
<a class="anchor" name="g39224c46d5ed891d16e08239c959a8a8"></a><!-- doxytag: member="lights.h::orbs_set_color" ref="g39224c46d5ed891d16e08239c959a8a8" args="(uint8_t col1, uint8_t col2)" -->
674
<div class="memitem">
675
<div class="memproto">
676
      <table class="memname">
677
        <tr>
678
          <td class="memname">void orbs_set_color           </td>
679
          <td>(</td>
680
          <td class="paramtype">uint8_t&nbsp;</td>
681
          <td class="paramname"> <em>col1</em>, </td>
682
        </tr>
683
        <tr>
684
          <td class="paramkey"></td>
685
          <td></td>
686
          <td class="paramtype">uint8_t&nbsp;</td>
687
          <td class="paramname"> <em>col2</em></td><td>&nbsp;</td>
688
        </tr>
689
        <tr>
690
          <td></td>
691
          <td>)</td>
692
          <td></td><td></td><td></td>
693
        </tr>
694
      </table>
695
</div>
696
<div class="memdoc">
697

    
698
<p>
699
set the orbs to specified colors 
700
<p>
701
Set the orbs to the respective color. This function is intended to be used with the predefined colors.<p>
702
<dl compact><dt><b>Parameters:</b></dt><dd>
703
  <table border="0" cellspacing="2" cellpadding="0">
704
    <tr><td valign="top"></td><td valign="top"><em>col1</em>&nbsp;</td><td>the color to set orb 1 to </td></tr>
705
    <tr><td valign="top"></td><td valign="top"><em>col2</em>&nbsp;</td><td>the color to set orb 2 to </td></tr>
706
  </table>
707
</dl>
708

    
709
</div>
710
</div><p>
711
</div>
712
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Nov 20 21:51:59 2009 for Colony by&nbsp;
713
<a href="http://www.doxygen.org/index.html">
714
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
715
</body>
716
</html>