Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / template / main.c @ 1549

History | View | Annotate | Download (263 Bytes)

1
#include <dragonfly_lib.h>
2

    
3
int main(void)
4
{
5

    
6
        /* initialize components, set wireless channel */
7
        dragonfly_init(ALL_ON);
8
        
9
        int val;
10

    
11
        while (1) {
12

    
13
                usb_puts("Val: ");
14
                usb_puti(range_read_distance(IR2));
15
                usb_putc('\n');
16

    
17
                delay_ms(200);
18

    
19
        }
20

    
21
        return 0;
22
}
23