LCD display only 1st caracter per lcd.print command

Discussion about software developed by Freematics, including Freematics Builder and Freematics Emulator GUI
Post Reply
olivier
Posts: 1
Joined: Thu May 26, 2016 1:45 am

LCD display only 1st caracter per lcd.print command

Post by olivier »

Hello,

I try to reactivate a OBD KIT (Arduino OBD-II Telematics Kit #3 ) that I purchase 2 years ago, with the original libraries and software, but the lcd displays only 1 caracter per line. Since then, I think that the only change is the Arduino IDE (1.6.7).
Is there a way to make it working?
Thanks.
kumakiri
Posts: 1
Joined: Thu Dec 08, 2016 12:05 pm

Re: LCD display only 1st caracter per lcd.print command

Post by kumakiri »

You will have to modify the Arduino library to make it suitable for multi-line.

~\Arduino\libraries\MultiLCD\R61581.cpp:

size_t LCD_R61581::write(uint8_t c)
{
(....)
return 1;
}

++ add last line "return 1;"


~Arduino\hardware\arduino\avr\cores\arduino\Print.cpp:

size_t Print::println(void)
{
return write('\r') + write('\n');
}

++ renew "return write("\r\n");"


for further information, see http://forum.arduino.cc/index.php?topic ... msg2921626
Post Reply