diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-11-15 00:28:12 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-11-15 00:28:12 +1100 |
commit | 842e005a051504eb0f14c0bbca1171fb67952a1f (patch) | |
tree | 95625cf3ed76bbe2b0a1f3cc89cd416408bb5809 | |
parent | 129e6d471238d298ff8eb3e7a8aa0b168e0a86d3 (diff) | |
download | 2021-arduino-obd-842e005a051504eb0f14c0bbca1171fb67952a1f.tar.gz 2021-arduino-obd-842e005a051504eb0f14c0bbca1171fb67952a1f.tar.bz2 2021-arduino-obd-842e005a051504eb0f14c0bbca1171fb67952a1f.zip |
Improve Mega Logger
-rw-r--r-- | megalogger/megalogger.ino | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index fd05f50..3a07faf 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -142,27 +142,29 @@ void showPIDData(byte pid, int value) lcd.printInt(value, 3); break; case PID_THROTTLE: - lcd.setFontSize(FONT_SIZE_MEDIUM); + lcd.setFontSize(FONT_SIZE_LARGE); lcd.setCursor(80, 21); - if (value > 100) value = 100; + if (value >= 100) value = 99; setColorByValue(value, 50, 75, 100); - lcd.printInt(value, 3); + lcd.printInt(value, 2); break; case PID_ENGINE_FUEL_RATE: - if (value < 1000) { - lcd.setFontSize(FONT_SIZE_MEDIUM); + if (value < 100) { + lcd.setFontSize(FONT_SIZE_LARGE); lcd.setCursor(80, 24); - lcd.printInt(value, 3); + lcd.printInt(value, 2); } break; case PID_INTAKE_TEMP: - lcd.setFontSize(FONT_SIZE_MEDIUM); - lcd.setCursor(80, 27); - lcd.printInt(value, 3); + if (value < 100) { + lcd.setFontSize(FONT_SIZE_LARGE); + lcd.setCursor(80, 27); + lcd.printInt(value, 2); + } break; case PID_VOLTAGE: - lcd.setFontSize(FONT_SIZE_MEDIUM); - lcd.setCursor(72, 18); + lcd.setFontSize(FONT_SIZE_LARGE); + lcd.setCursor(80, 18); lcd.printInt(value / 10, 2); lcd.write('.'); lcd.printInt(value % 10); @@ -205,7 +207,7 @@ void initScreen() lcd.print("ALTITUDE: m"); lcd.setCursor(18, 18); - lcd.print("BATTERY: V"); + lcd.print("BATTERY: V"); lcd.setCursor(18, 21); lcd.print("THROTTLE: %"); lcd.setCursor(18, 24); |