root / branches / autonomous_recharging / code / projects / autonomous_recharging / archs / Robot Debug / main.c @ 355
History | View | Annotate | Download (254 Bytes)
1 | 266 | bneuman | #include <dragonfly_lib.h> |
---|---|---|---|
2 | #include <i2c.h> |
||
3 | |||
4 | void recv(char i2c_byte){ |
||
5 | 355 | bneuman | usb_puts("ab");
|
6 | 266 | bneuman | usb_putc(i2c_byte); |
7 | } |
||
8 | |||
9 | int main(){
|
||
10 | |||
11 | dragonfly_init(ALL_ON); |
||
12 | i2c_init(1, NULL, recv, NULL); |
||
13 | |||
14 | 267 | bneuman | usb_puts("init'd everything.\r\n");
|
15 | 266 | bneuman | |
16 | while(1); |
||
17 | 267 | bneuman | } |