Project

General

Profile

Statistics
| Revision:

root / branches / init_refactor / code / behaviors / BOM_test / beaconBot / main.c @ 1547

History | View | Annotate | Download (452 Bytes)

1
#include <dragonfly_lib.h>
2

    
3
int main(void)
4
{
5
  /* initialize components, set wireless channel */
6
  if (dragonfly_init(/* ANALOG|ORB|BOM */ ALL_ON) != 0) {
7
    orbs_set_color(YELLOW, YELLOW);
8
    while(1) { ; }
9
  }
10

    
11
  if (bom_on() != 0) {
12
    orbs_set_color(RED, RED);
13
    while(1) { ; }
14
  }
15

    
16
  while(1);
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
}