mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +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);
|
ret = command(LCD_FUNCTIONSET | LCD_8BITMODE);
|
||||||
UPM_CHECK_MRAA_SUCCESS(ret, "Unable to initialise the LCD controller");
|
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);
|
usleep(100);
|
||||||
ret = displayOn();
|
ret = displayOn();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user