From 9a74a3b4f53cac5580e31423aaf492f749563e1f Mon Sep 17 00:00:00 2001 From: Akira Tsukamoto Date: Tue, 31 May 2016 17:23:38 +0900 Subject: [PATCH] LCD:jhd1313m1:HD44780 Setting number of rows and font size Signed-off-by: Akira Tsukamoto Signed-off-by: Abhishek Malik --- src/lcd/jhd1313m1.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lcd/jhd1313m1.cxx b/src/lcd/jhd1313m1.cxx index 2063b4b8..c161f34b 100644 --- a/src/lcd/jhd1313m1.cxx +++ b/src/lcd/jhd1313m1.cxx @@ -60,6 +60,10 @@ Jhd1313m1::Jhd1313m1(int bus, int lcdAddress, int rgbAddress) ret = command(LCD_FUNCTIONSET | LCD_8BITMODE); UPM_CHECK_MRAA_SUCCESS(ret, "Unable to initialise the LCD controller"); + /* Set 2 row mode and font size */ + ret = command(LCD_FUNCTIONSET | LCD_8BITMODE | LCD_2LINE | LCD_5x10DOTS); + UPM_CHECK_MRAA_SUCCESS(ret, "Unable to initialise the LCD controller"); + usleep(100); ret = displayOn();