LCD:jhd1313m1:HD44780 Setting number of rows and font size

Signed-off-by: Akira Tsukamoto <akira.tsukamoto@linaro.org>
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Akira Tsukamoto 2016-05-31 17:23:38 +09:00 committed by Abhishek Malik
parent 25c0f8ebb1
commit 9a74a3b4f5

View File

@ -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();