From 51951fcea12369afb65b1a360491fda53478be79 Mon Sep 17 00:00:00 2001 From: Silver Kits Date: Mon, 10 Oct 2016 11:34:43 +0300 Subject: [PATCH] Fix and change hd44780 LCD row and col positions --- lib/hd44780_111/hd44780.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/hd44780_111/hd44780.h b/lib/hd44780_111/hd44780.h index f486b43..83043ab 100755 --- a/lib/hd44780_111/hd44780.h +++ b/lib/hd44780_111/hd44780.h @@ -37,12 +37,17 @@ Version: 1.11 #define LCD_BUSY 7 // DB7: LCD is busy // LCD columns and rows definitions -#define LCD_ROW_1 0 -#define LCD_ROW_2 64 -#define LCD_COLS_MAX 128 +#define LCD_ROW_1_START 0 +#define LCD_ROW_2_START 64 +#define LCD_ROW_1_LAST_VISIBLE_COL 15 +#define LCD_ROW_1_LAST_COL 39 +#define LCD_ROW_2_LAST_VISIBLE_COL 79 +#define LCD_ROW_1_LAST_COL 103 +#define LCD_COLS_MAX 103 +#define LCD_VISIBLE_COLS 16 // Maximum character what can be displayed with 1 byte -#define MAX_CARACTER 255 +#define LCD_MAX_CARACTER 255 void lcd_init();