diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-03-18 22:09:52 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-03-18 22:09:52 +0800 |
commit | 6aaf937f2c17d713966b3b3d647fa35980a3b8ce (patch) | |
tree | c71bb0080e06b12cd7e2e9e9556678ec7699b06c /megalogger/megalogger.ino | |
parent | 49882cea4e2cb134c990963110cd5c9714462460 (diff) | |
download | 2021-arduino-obd-6aaf937f2c17d713966b3b3d647fa35980a3b8ce.tar.gz 2021-arduino-obd-6aaf937f2c17d713966b3b3d647fa35980a3b8ce.tar.bz2 2021-arduino-obd-6aaf937f2c17d713966b3b3d647fa35980a3b8ce.zip |
Fix MEGA Logger compiliation issue
Diffstat (limited to 'megalogger/megalogger.ino')
-rw-r--r-- | megalogger/megalogger.ino | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index f2d7a70..401e06e 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -452,7 +452,8 @@ private: for (byte i = 0; i < sizeof(pidlist) / sizeof(pidlist[0]); i++) { bool valid = isValidPID(pidlist[i]); lcd.setTextColor(valid ? RGB16_GREEN : RGB16_RED); - lcd.draw(valid ? tick : cross, 304, i * 16 + 32, 16, 16); + lcd.setCursor(304, i * 2 + 4); + lcd.draw(valid ? tick : cross, 16, 16); } lcd.setTextColor(RGB16_WHITE); } @@ -480,27 +481,27 @@ private: lcd.setFont(FONT_SIZE_MEDIUM); lcd.setCursor(0, 8); - lcd.print("OBD"); + lcd.print("OBD "); lcd.setTextColor((state & STATE_OBD_READY) ? RGB16_GREEN : RGB16_RED); - lcd.draw((state & STATE_OBD_READY) ? tick : cross, 36, 64, 16, 16); + lcd.draw((state & STATE_OBD_READY) ? tick : cross, 16, 16); lcd.setTextColor(RGB16_WHITE); lcd.setCursor(0, 10); - lcd.print("ACC"); + lcd.print("ACC "); lcd.setTextColor((state & STATE_ACC_READY) ? RGB16_GREEN : RGB16_RED); - lcd.draw((state & STATE_ACC_READY) ? tick : cross, 36, 80, 16, 16); + lcd.draw((state & STATE_ACC_READY) ? tick : cross, 16, 16); lcd.setTextColor(RGB16_WHITE); lcd.setCursor(0, 12); - lcd.print("GPS"); + lcd.print("GPS "); if (state & STATE_GPS_READY) { lcd.setTextColor(RGB16_GREEN); - lcd.draw(tick, 36, 96, 16, 16); + lcd.draw(tick, 16, 16); } else if (state & STATE_GPS_CONNECTED) - lcd.print(" --"); + lcd.print("--"); else { lcd.setTextColor(RGB16_RED); - lcd.draw(cross, 36, 96, 16, 16); + lcd.draw(cross, 16, 16); } lcd.setTextColor(RGB16_WHITE); } @@ -545,10 +546,13 @@ private: { lcd.clear(); #ifndef MEMORY_SAVING - lcd.draw2x(frame0[0], 0, 0, 78, 58); - lcd.draw2x(frame0[0], 164, 0, 78, 58); - lcd.draw2x(frame0[0], 0, 124, 78, 58); - lcd.draw2x(frame0[0], 164, 124, 78, 58); + lcd.draw2x(frame0[0], 78, 58); + lcd.setXY(164, 0); + lcd.draw2x(frame0[0], 78, 58); + lcd.setXY(0, 124); + lcd.draw2x(frame0[0], 78, 58); + lcd.setXY(164, 124); + lcd.draw2x(frame0[0], 78, 58); #endif //lcd.setColor(RGB16(0x7f, 0x7f, 0x7f)); |