Guest User

Untitled

a guest
Jun 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. String foo = String.format("%.1f, %.1f%", temp1, hum1);
  2. // "display" is my instance of Adafruit_SSD1306
  3. display.print(foo);
  4.  
  5. display.print(temp1, 1); // 1 digit after the decimal point
  6. display.print(", ");
  7. display.print(hum1, 1); // ditto
  8. display.print("%");
Add Comment
Please, Sign In to add comment