summaryrefslogtreecommitdiff
path: root/megalogger
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-06-10 19:55:38 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2014-06-10 19:55:38 +1000
commit3d6d4d69881ce89e13f4eb04ca973e6eb1812a7b (patch)
tree25b95d3efb1b54cfe0842690fc83167275cb7bb8 /megalogger
parent75da809b139fd039e1a14714e5ccce3417bd1d78 (diff)
download2021-arduino-obd-3d6d4d69881ce89e13f4eb04ca973e6eb1812a7b.tar.gz
2021-arduino-obd-3d6d4d69881ce89e13f4eb04ca973e6eb1812a7b.tar.bz2
2021-arduino-obd-3d6d4d69881ce89e13f4eb04ca973e6eb1812a7b.zip
Update MEGA Logger for colored display
Diffstat (limited to 'megalogger')
-rw-r--r--megalogger/megalogger.ino8
1 files changed, 4 insertions, 4 deletions
diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino
index 5e85f3d..a647590 100644
--- a/megalogger/megalogger.ino
+++ b/megalogger/megalogger.ino
@@ -499,27 +499,27 @@ private:
lcd.setFontSize(FONT_SIZE_XLARGE);
lcd.setCursor(34, 7);
if (value >= 10000) break;
- setColorByValue(value, 2500, 3500, 4500);
+ setColorByValue(value, 2500, 3500, 5000);
lcd.printInt(value, 4);
break;
case PID_SPEED:
lcd.setFontSize(FONT_SIZE_XLARGE);
lcd.setCursor(50, 2);
if (value > 350) break;
- setColorByValue(value, 60, 100, 150);
+ setColorByValue(value, 50, 80, 160);
lcd.printInt((unsigned int)value % 1000, 3);
break;
case PID_THROTTLE:
lcd.setFontSize(FONT_SIZE_MEDIUM);
lcd.setCursor(42, 11);
- if (value >= 100) break;
+ if (value >= 100) value = 99;
setColorByValue(value, 50, 75, 90);
lcd.printInt(value, 2);
break;
case PID_ENGINE_LOAD:
lcd.setFontSize(FONT_SIZE_MEDIUM);
lcd.setCursor(116, 11);
- if (value >= 100) break;
+ if (value >= 100) value = 99;
setColorByValue(value, 50, 75, 90);
lcd.printInt(value, 2);
break;