Project

General

Profile

Statistics
| Revision:

root / branches / autonomous_recharging / code / projects / autonomous_recharging / archs / Robot Debug / main.c @ 267

History | View | Annotate | Download (237 Bytes)

1
#include <dragonfly_lib.h>
2
#include <i2c.h>
3

    
4
void recv(char i2c_byte){
5
        usb_putc(i2c_byte);
6
        }
7

    
8
int main(){
9

    
10
        dragonfly_init(ALL_ON);
11
        i2c_init(1, NULL, recv, NULL);
12
        
13
        usb_puts("init'd everything.\r\n");
14
        
15
        while(1);
16
}
17