/* Before you start, select your target, on the right of the "Load" button */
int main(void)
/* Before you start, select your target, on the right of the "Load" button */
int main(void)
{
		count++;
		TM_OneWire_GetFullROM(&OneWire1, device[count - 1]);
		devices = TM_OneWire_Next(&OneWire1);
	}
	if (count > 0) {
		sprintf(buf, "Devices found on 1-wire instance: %d\n", count);
		TM_USART_Puts(USART1, buf);
		for (j = 0; j < count; j++) {
			for (i = 0; i < 8; i++) {
				sprintf(buf, "0x%02X ", device[j][i]);
				TM_USART_Puts(USART1, buf);
			}
			TM_USART_Puts(USART1, "\n");
		}
	} else {
		TM_USART_Puts(USART1, "No devices on OneWire.\n\n");
	}
	while (1) {
	}
}