sci-oly-detector-building

[RADIOACTIVE] arduino thermometer for science olympiad
git clone git://git.figbert.com/sci-oly-detector-building.git
Log | Files | Refs | LICENSE

commit 279da96fe98579ce35fb4483976b048fc8705474
parent 72bd90a55cd7839b5c0ce52326c5666fa6e834c8
Author: Jacob Neplokh <me@jacobneplokh.com>
Date:   Tue, 18 Feb 2020 13:34:32 -0800

:art: Make float a string

Diffstat:
MRoughDraft/RoughDraft.ino | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/RoughDraft/RoughDraft.ino b/RoughDraft/RoughDraft.ino @@ -17,8 +17,8 @@ void loop() { float celsius = (voltage - 0.5) * 100; float fahrenheit = (celsius * 9.0 / 5.0) + 32.0; lcd.setCursor(5, 0); - lcd.print(celsius); + lcd.print(String(celsius) + "C"); lcd.setCursor(5, 1); - lcd.print(fahrenheit); + lcd.print(String(fahrenheit) + "F"); }