Project

General

Profile

Revision 1133

Small update to code which reads analog ports.

View differences:

trunk/code/projects/diagnostic_station/stationCode/v1/main.c
16 16
	usb_puts("Yay we are on!\n");
17 17

  
18 18
	while(1) {
19
		usb_puts("port ");
19

  
20
		usb_puts("port:\t\tval:");
20 21
		usb_puts(itoa(WHEEL_PORT, buf, 10));
21 22
		usb_puts("\tvalue: ");
22 23
		usb_puts(itoa(analog_get8(WHEEL_PORT), buf, 10));
23 24
		usb_puts("\n");
24 25
		delay_ms(100);
25 26
	}
27

  
26 28
}

Also available in: Unified diff