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 e434bdd1d22f58cf5c51f9076cc228a8bd7961c8
parent a1fce2e322b9d983d5910b745f011a50bc4316e2
Author: therealFIGBERT <figbertwelner@gmail.com>
Date:   Tue,  3 Mar 2020 18:00:32 -0800

:wrench: Update LED values for competition

Diffstat:
MOperational/Operational.ino | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Operational/Operational.ino b/Operational/Operational.ino @@ -33,15 +33,19 @@ void loop() { lcd.print(String(temp) + "C"); lcd.setCursor(5, 1); lcd.print(String(volts) + "V"); - if (temp < 18.0) { + if (temp < 0.0) { + digitalWrite(blue_light_pin, LOW); + digitalWrite(green_light_pin, LOW); + digitalWrite(red_light_pin, LOW); + } else if (temp < 21.0) { digitalWrite(blue_light_pin, HIGH); digitalWrite(green_light_pin, LOW); digitalWrite(red_light_pin, LOW); - } else if (temp < 25.0) { + } else if (temp < 52.0) { digitalWrite(blue_light_pin, LOW); digitalWrite(green_light_pin, HIGH); digitalWrite(red_light_pin, LOW); - } else { + } else if (temp <= 75.0) { digitalWrite(blue_light_pin, LOW); digitalWrite(green_light_pin, LOW); digitalWrite(red_light_pin, HIGH);