Project

General

Profile

Statistics
| Revision:

root / branches / wireless / code / behaviors / BOM_test / beaconBot / main.c @ 1513

History | View | Annotate | Download (414 Bytes)

1
#include <dragonfly_lib.h>
2

    
3
int main(void)
4
{
5

    
6
        /* initialize components, set wireless channel */
7
        if (dragonfly_init(ANALOG|ORB|BOM) != 0) {
8
    orbs_set_color(YELLOW, YELLOW);
9
    while(1) { ; }
10
  }
11

    
12
        if (bom_on() != 0) {
13
    orbs_set_color(RED, RED);
14
    while(1) { ; }
15
  }
16
  
17
        
18
        while (1) {
19

    
20
                orbs_set_color(GREEN, BLUE);
21

    
22
                delay_ms(1000);
23

    
24
                orbs_set_color(BLUE, GREEN);
25

    
26
                delay_ms(1000);
27

    
28
        }
29

    
30
        return 0;
31
}