Revision 956 branches/autonomous_recharging/code/projects/autonomous_recharging/archs/Robot Debug/main.c

View differences:

main.c
66 66
    byte = 0;
67 67
    next = 0;
68 68
	i2c_init(0x01, NULL, recv, NULL);
69
	//i2c_init();
70
	char packet;
71
	char *get = &packet;
72
	usb_puts("init'd everything.\r\n");
69 73
	
70
	//usb_puts("init'd everything.\r\n");
71
	
72 74
	while(1) {
75
		i2c_getpacket(get);
76
		recv(packet);
73 77
		delay_ms(2000);
74 78
	}
75 79
}

Also available in: Unified diff