Create a gist now

Instantly share code, notes, and snippets.

anonymous /a.cpp Secret
Created Mar 14, 2016

Embed
void loop() {
if (sensors.available())
{
if (Serial.available() > 0)
{
while(Serial.available() > 0)
Serial.read();
for (byte i=0; i<SENSORS_NUM; i++)
{
float temperature = sensors.readTemperature(FA(address[i]));
Serial.print(F("#"));
Serial.print(i);
Serial.print(F(": "));
Serial.print(temperature);
Serial.println(F(" 'C"));
}
}
sensors.request();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment