Advertisement
RuiViana

Concaternar

Mar 31st, 2016
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. float Xpto; // Varialvel para guardar valor de temperatura
  2. int humidade; // Varialvel para guardar valor de umidade
  3. String Display; // Varialvel tipo string para guardar o texto para o display
  4. Xpto = dht.readTemperature(); // Le temperatura no DHT11
  5. humidade = dht.readHumidity(); // Le humidade no DHT11
  6. Display = "C:"; // C: no texto
  7. Display += Xpto; // valor da temperatura no texto
  8. Display += " H:"; // H: no texto
  9. Display += humidade; // valor da umidade no texto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement