Skip to content

Commit

Permalink
fix offset bug for 16x4 LCD
Browse files Browse the repository at this point in the history
  • Loading branch information
lincomatic committed Jun 24, 2019
1 parent 30aa480 commit 070881f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LiquidTWI2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ void LiquidTWI2::setCursor(uint8_t col, uint8_t row)
#ifdef DETECT_DEVICE
if (!_deviceDetected) return;
#endif
int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
int row_offsets[] = { 0x00, 0x40, 0x10, 0x50 };
if ( row > _numlines ) row = _numlines - 1; // we count rows starting w/0
command(LCD_SETDDRAMADDR | (col + row_offsets[row]));
}
Expand Down
5 changes: 4 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ For more information see
Panelolu2 usage see
http://blog.think3dprint3d.com/2012/12/mcp23017-i2c.html

Version 1.2.6
Version 1.2.7

Changelog:

* 1.2.7 / 20190624 SCL
fixed row offset issue w/ 16x4 LCD per https://github.com/lincomatic/LiquidTWI2/issues/15

* 1.2.6 / 20140220 SCL
added device detected guard to home() & buzz()

Expand Down

0 comments on commit 070881f

Please sign in to comment.