root / branches / analog / trunk / code / projects / template / main.c @ 442
History | View | Annotate | Download (404 Bytes)
1 |
#include "../libdragonfly/dragonfly_lib.h" |
---|---|
2 |
|
3 |
int main(void) { |
4 |
int maxbom = -1; |
5 |
dragonfly_init(ALL_ON); |
6 |
range_init(); |
7 |
usb_puts("starting\n\r");
|
8 |
while (1) { |
9 |
//bom_on();
|
10 |
bom_refresh(BOM_ALL); |
11 |
usb_puts("refreshed\n\r");
|
12 |
maxbom = bom_get_max(); |
13 |
usb_puts("maxbom: ");
|
14 |
usb_puti(maxbom); |
15 |
usb_puts("\n\n\r");
|
16 |
delay_ms(100);
|
17 |
} |
18 |
|
19 |
return 0; |
20 |
} |