Revision 1518
updated library to add DRAGONFLY_DEBUG stuff
Can now call make debug which will recompile the library with debug flags!
main.c | ||
---|---|---|
3 | 3 |
int main(void) |
4 | 4 |
{ |
5 | 5 |
|
6 |
/* initialize components, set wireless channel */
|
|
7 |
if (dragonfly_init(ANALOG|ORB|BOM) != 0) {
|
|
6 |
/* initialize components, set wireless channel */
|
|
7 |
if (dragonfly_init(/* ANALOG|ORB|BOM */ ALL_ON) != 0) {
|
|
8 | 8 |
orbs_set_color(YELLOW, YELLOW); |
9 | 9 |
while(1) { ; } |
10 | 10 |
} |
11 | 11 |
|
12 |
if (bom_on() != 0) {
|
|
12 |
if (bom_on() != 0) {
|
|
13 | 13 |
orbs_set_color(RED, RED); |
14 | 14 |
while(1) { ; } |
15 | 15 |
} |
16 | 16 |
|
17 | 17 |
|
18 |
while (1) {
|
|
18 |
while (1) {
|
|
19 | 19 |
|
20 |
orbs_set_color(GREEN, BLUE);
|
|
20 |
orbs_set_color(GREEN, BLUE);
|
|
21 | 21 |
|
22 |
delay_ms(1000);
|
|
22 |
delay_ms(1000);
|
|
23 | 23 |
|
24 |
orbs_set_color(BLUE, GREEN);
|
|
24 |
orbs_set_color(BLUE, GREEN);
|
|
25 | 25 |
|
26 |
delay_ms(1000);
|
|
26 |
delay_ms(1000);
|
|
27 | 27 |
|
28 |
}
|
|
28 |
}
|
|
29 | 29 |
|
30 |
return 0;
|
|
30 |
return 0;
|
|
31 | 31 |
} |
Also available in: Unified diff