Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (263 Bytes)

1 16 bcoltin
#include <dragonfly_lib.h>
2
3 857 bcoltin
int main(void)
4
{
5 1419 jsexton
6 967 alevkoy
        /* initialize components, set wireless channel */
7 857 bcoltin
        dragonfly_init(ALL_ON);
8 1419 jsexton
9
        int val;
10 967 alevkoy
11 1394 cmar
        while (1) {
12 967 alevkoy
13 1419 jsexton
                usb_puts("Val: ");
14 1549 jsexton
                usb_puti(range_read_distance(IR2));
15 1419 jsexton
                usb_putc('\n');
16
17
                delay_ms(200);
18
19 967 alevkoy
        }
20
21
        return 0;
22 16 bcoltin
}