Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String foo = String.format("%.1f, %.1f%", temp1, hum1);
- // "display" is my instance of Adafruit_SSD1306
- display.print(foo);
- display.print(temp1, 1); // 1 digit after the decimal point
- display.print(", ");
- display.print(hum1, 1); // ditto
- display.print("%");
Add Comment
Please, Sign In to add comment