mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
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:
parent
25c0f8ebb1
commit
9a74a3b4f5
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user