Not displaying correctly on LCD_R61581
Posted: Tue May 17, 2016 2:23 am
I just got Kit #3 and set it up and compiled the code. The values from the GPS and the OBD-II adapter are displaying. What is not displaying correctly is the initialization screen (Text gets cut off at one the first character) and the main screen that displays the data (characters also get cut off at one character for km/h etc and ENGINE/DISTANCE/LOAD, etc doesn't get displayed at all:
lcd.setColor(RGB16_CYAN);
lcd.setFontSize(FONT_SIZE_SMALL);
lcd.setCursor(110, 4);
lcd.print("km/h");
lcd.setCursor(110, 8);
lcd.print("RPM");
lcd.setCursor(110, 11);
lcd.print("ENGINE");
lcd.setCursor(110, 12);
lcd.print("LOAD %");
//lcd.setFont(FONT_SIZE_MEDIUM);
lcd.setColor(RGB16_CYAN);
lcd.setCursor(184, 2);
lcd.print("ELAPSED:");
lcd.setCursor(184, 5);
lcd.print("DISTANCE: km");
lcd.setCursor(184, 8);
lcd.print("AVG SPEED: kph");
lcd.setCursor(184, 11);
lcd.print("ALTITUDE: m");
lcd.setCursor(18, 18);
lcd.print("BATTERY: V");
lcd.setCursor(18, 21);
lcd.print("THROTTLE: %");
lcd.setCursor(18, 24);
lcd.print("FUEL RATE: L/h");
lcd.setCursor(18, 27);
lcd.print("INTAKE: C");
lcd.setCursor(184, 18);
lcd.print("UTC:");
lcd.setCursor(184, 19);
lcd.print("LAT:");
lcd.setCursor(280, 19);
lcd.print("SAT:");
lcd.setCursor(184, 20);
lcd.print("LNG:");
lcd.setFontSize(FONT_SIZE_SMALL);
lcd.setCursor(184, 22);
lcd.print("ACC:");
lcd.setCursor(184, 23);
lcd.print("GYR:");
lcd.setCursor(184, 24);
lcd.print("MAG:");
lcd.setCursor(184, 26);
lcd.print("OBD FREQ:");
lcd.setCursor(184, 27);
lcd.print("GPS FREQ:");
lcd.setCursor(184, 28);
lcd.print("LOG SIZE:");
The only text that is displayed in this code is the first character of the 'k' for km, 'k' for kph, etc for all of the text displayed.
What is causing this and how can I fix it?
*EDIT
I'm using Bluno MEGA 2560 (ATmega2560+BLE) and the 3.5" LCD_R61581 LCD screen.
lcd.setColor(RGB16_CYAN);
lcd.setFontSize(FONT_SIZE_SMALL);
lcd.setCursor(110, 4);
lcd.print("km/h");
lcd.setCursor(110, 8);
lcd.print("RPM");
lcd.setCursor(110, 11);
lcd.print("ENGINE");
lcd.setCursor(110, 12);
lcd.print("LOAD %");
//lcd.setFont(FONT_SIZE_MEDIUM);
lcd.setColor(RGB16_CYAN);
lcd.setCursor(184, 2);
lcd.print("ELAPSED:");
lcd.setCursor(184, 5);
lcd.print("DISTANCE: km");
lcd.setCursor(184, 8);
lcd.print("AVG SPEED: kph");
lcd.setCursor(184, 11);
lcd.print("ALTITUDE: m");
lcd.setCursor(18, 18);
lcd.print("BATTERY: V");
lcd.setCursor(18, 21);
lcd.print("THROTTLE: %");
lcd.setCursor(18, 24);
lcd.print("FUEL RATE: L/h");
lcd.setCursor(18, 27);
lcd.print("INTAKE: C");
lcd.setCursor(184, 18);
lcd.print("UTC:");
lcd.setCursor(184, 19);
lcd.print("LAT:");
lcd.setCursor(280, 19);
lcd.print("SAT:");
lcd.setCursor(184, 20);
lcd.print("LNG:");
lcd.setFontSize(FONT_SIZE_SMALL);
lcd.setCursor(184, 22);
lcd.print("ACC:");
lcd.setCursor(184, 23);
lcd.print("GYR:");
lcd.setCursor(184, 24);
lcd.print("MAG:");
lcd.setCursor(184, 26);
lcd.print("OBD FREQ:");
lcd.setCursor(184, 27);
lcd.print("GPS FREQ:");
lcd.setCursor(184, 28);
lcd.print("LOG SIZE:");
The only text that is displayed in this code is the first character of the 'k' for km, 'k' for kph, etc for all of the text displayed.
What is causing this and how can I fix it?
*EDIT
I'm using Bluno MEGA 2560 (ATmega2560+BLE) and the 3.5" LCD_R61581 LCD screen.