-
-
Save anonymous/c8a1030e5c13668f7deb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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