Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (254 Bytes)

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

    
4
void recv(char i2c_byte){
5
        usb_puts("ab");
6
        usb_putc(i2c_byte);
7
        }
8

    
9
int main(){
10

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