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