diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2015-11-01 21:20:19 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2015-11-01 21:20:19 +1100 |
commit | b14a9dd1ae96a066732c8d85cf41065482e31266 (patch) | |
tree | a2837fec100c4df42234479fbdc8489d88f9c2e0 | |
parent | 1b496fb2a89b1af1f4090b2910fdc5fd9f5a1c5a (diff) | |
download | 2021-arduino-obd-b14a9dd1ae96a066732c8d85cf41065482e31266.tar.gz 2021-arduino-obd-b14a9dd1ae96a066732c8d85cf41065482e31266.tar.bz2 2021-arduino-obd-b14a9dd1ae96a066732c8d85cf41065482e31266.zip |
GUI tweakup
-rw-r--r-- | megalogger/config.h | 7 | ||||
-rw-r--r-- | 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); |