I am wanting to use this sketch Original Dallas Temp Sensor - Pastebin.com to use multiple sensors to monitor temperature via a Arduino, but when I amend the code to reflect the address of the sensors;
// assign address manually. the addresses below will beed to be changed
// to valid device addresses on your bus. device address can be retrieved
// by using either sensors.search(deviceAddress) or individually via
// sensors.getAddress(deviceAddress, index)
insideThermometer = { 0x28, 0x1D, 0x39, 0x31, 0x2, 0x0, 0x0, 0xF0 };
outsideThermometer = { 0x28, 0x3F, 0x1C, 0x31, 0x2, 0x0, 0x0, 0x2 };
// search for devices on the bus and assign based on an index. ideally,
// you would do this to initially discover addresses on the bus and then
// use those addresses and manually assign them (see above) once you know
// the devices on your bus (and assuming they don't change).
// if (!sensors.getAddress(insideThermometer, 0)) Serial.println("Unable to find address for Device 0");
// if (!sensors.getAddress(outsideThermometer, 1)) Serial.println("Unable to find address for Device 1");
// show the addresses we found on the bus
//Serial.print("Device 0 Address: ");
//printAddress(insideThermometer);
//Serial.println();
// Serial.print("Device 1 Address: ");
//printAddress(outsideThermometer);
//Serial.println();
It will not compile, and highlights errors here;
insideThermometer = { 0x28, 0x1D, 0x39, 0x31, 0x2, 0x0, 0x0, 0xF0 };
outsideThermometer = { 0x28, 0x3F, 0x1C, 0x31, 0x2, 0x0, 0x0, 0x2 };
The amended code is here Amended Dallas Temp Sensor - Pastebin.com but I can't understand what I am doing wrong??