From b14a9dd1ae96a066732c8d85cf41065482e31266 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Sun, 1 Nov 2015 21:20:19 +1100 Subject: GUI tweakup --- megalogger/config.h | 7 ++++--- megalogger/megalogger.ino | 13 +++++-------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/megalogger/config.h b/megalogger/config.h index ef36ce6..903387c 100644 --- a/megalogger/config.h +++ b/megalogger/config.h @@ -67,9 +67,10 @@ /************************************** * LCD module (uncomment only one) **************************************/ -LCD_SSD1289 lcd; /* 3.2" SSD12389 based TFT LCD */ -//LCD_ILI9325D lcd; /* 2.8" ILI9325 based TFT LCD */ -//LCD_ILI9341 lcd; /* 2.4" ILI9341 based SPI TFT LCD */ +//LCD_R61581 lcd; /* 3.5" CTE35IPS/R61581 based LCD */ +LCD_SSD1289 lcd; /* 3.2" SSD12389 based LCD */ +//LCD_ILI9325D lcd; /* 2.8" ILI9325 based LCD */ +//LCD_ILI9341 lcd; /* 2.4" ILI9341 based SPI LCD */ //LCD_Null lcd; #endif diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index 975335c..fe27f04 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -801,21 +801,18 @@ void setup() state |= STATE_OBD_READY; - lcd.setColor(RGB16_GREEN); - lcd.setFontSize(FONT_SIZE_MEDIUM); - lcd.println("OBD READY!"); - char buf[OBD_RECV_BUF_SIZE]; if (obd.getVIN(buf)) { + lcd.setFontSize(FONT_SIZE_SMALL); lcd.setColor(RGB16_WHITE); lcd.print("VIN:"); lcd.setColor(RGB16_YELLOW); - lcd.print(buf); + lcd.println(buf); } - //lcd.setFont(FONT_SIZE_MEDIUM); - //lcd.setCursor(0, 14); - //lcd.print("VIN: XXXXXXXX"); + lcd.setColor(RGB16_GREEN); + lcd.setFontSize(FONT_SIZE_MEDIUM); + lcd.println("READY!"); showECUCap(); delay(3000); -- cgit v1.2.3