From 6aaf937f2c17d713966b3b3d647fa35980a3b8ce Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Tue, 18 Mar 2014 22:09:52 +0800 Subject: Fix MEGA Logger compiliation issue --- megalogger/megalogger.ino | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'megalogger/megalogger.ino') 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)); -- cgit v1.2.3