Commit 8ccd0c4f authored by newbie15's avatar newbie15 Committed by Cristian Maglie
Browse files

Added a note about non-standard row offsets in LiquidCrystal.cpp

In my case I had to change it to make my 16x4 LCD work properly

Fixes #1333
parent 10b47cf0
......@@ -158,12 +158,18 @@ void LiquidCrystal::begin(uint8_t cols, uint8_t lines, uint8_t dotsize) {
}
/*
in some 16x4 LCD when line 3 and 4 are not placed correctly you may try:
setRowOffsets(0x00, 0x40, 0x14, 0x54)
or
setRowOffsets(0x00, 0x40, 0x10, 0x50)
*/
void LiquidCrystal::setRowOffsets(int row0, int row1, int row2, int row3)
{
_row_offsets[0] = row0;
_row_offsets[1] = row1;
_row_offsets[2] = row2;
_row_offsets[3] = row3;
_row_offsets[0] = row0;
_row_offsets[1] = row1;
_row_offsets[2] = row2;
_row_offsets[3] = row3;
}
/********** high level commands, for the user! */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment